Public Access
This commit is contained in:
1 parent
cd5bf0190e
commit
d7fb1855a8
3 files changed
+10
-6
No files matched your search
@@ -19,6 +19,7 @@ import net.minecraft.world.item.ItemStack;
|
||||
import net.neoforged.neoforge.network.PacketDistributor;
|
||||
|
||||
public final class LinkingBookScreen extends Screen {
|
||||
private static final int BOOK_TEXT_COLOR = 0xFF3B281B;
|
||||
private static final ResourceLocation BOOK_TEXTURE = ResourceLocation.fromNamespaceAndPath(
|
||||
"rivencraft", "textures/gui/linking_book.png"
|
||||
);
|
||||
@@ -89,21 +90,21 @@ public final class LinkingBookScreen extends Screen {
|
||||
|
||||
if (target == null) {
|
||||
graphics.drawWordWrap(font, Component.translatable("screen.rivencraft.book.name_prompt"),
|
||||
left + 177, top + 45, 124, 0xFF3B281B);
|
||||
left + 177, top + 45, 124, BOOK_TEXT_COLOR);
|
||||
} else {
|
||||
int previewLeft = left + PREVIEW_X;
|
||||
int previewTop = top + PREVIEW_Y;
|
||||
preview.render(graphics, previewLeft, previewTop, PREVIEW_WIDTH, PREVIEW_HEIGHT, partialTick);
|
||||
|
||||
int rightCenter = left + 239;
|
||||
graphics.drawWordWrap(font, title, left + 177, top + 43, 124, 0xFF3B281B);
|
||||
graphics.drawWordWrap(font, title, left + 177, top + 43, 124, BOOK_TEXT_COLOR);
|
||||
BlockPos pos = target.location().pos();
|
||||
graphics.drawCenteredString(font, Component.literal(target.location().dimension().location().toString()),
|
||||
rightCenter, top + 76, 0xFF624934);
|
||||
rightCenter, top + 76, BOOK_TEXT_COLOR);
|
||||
graphics.drawCenteredString(font, Component.literal(pos.getX() + ", " + pos.getY() + ", " + pos.getZ()),
|
||||
rightCenter, top + 89, 0xFF624934);
|
||||
rightCenter, top + 89, BOOK_TEXT_COLOR);
|
||||
graphics.drawCenteredString(font, Component.translatable("screen.rivencraft.book.click_to_link"),
|
||||
rightCenter, top + 119, 0xFF7A5A39);
|
||||
rightCenter, top + 119, BOOK_TEXT_COLOR);
|
||||
}
|
||||
|
||||
super.render(graphics, mouseX, mouseY, partialTick);
|
||||
|
||||
Reference in new issue
Block a user