Skip to content
This repository has been archived by the owner on Nov 24, 2024. It is now read-only.

Commit

Permalink
Use create location
Browse files Browse the repository at this point in the history
  • Loading branch information
JT122406 committed Nov 24, 2024
1 parent 3c07ae6 commit 1ef3778
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
import net.minecraft.network.chat.Component;
import net.minecraft.network.chat.MutableComponent;
import net.minecraft.resources.ResourceKey;
import net.minecraft.resources.ResourceLocation;
import net.minecraft.util.FastColor;
import net.minecraft.world.level.biome.Biome;
import org.apache.commons.lang3.mutable.Mutable;
Expand Down Expand Up @@ -128,7 +127,7 @@ protected void init() {

this.searchButton = new ImageButton(
this.leftPos + 15, (this.bottomPos + this.IMAGE_HEIGHT) - 5, 20, 18, 0, 220, 18,
new ResourceLocation("byg", "textures/gui/biomepedia.png"),
BYG.createLocation("textures/gui/biomepedia.png"),
256, 256,
(button) -> {
this.search.visible = !this.search.visible;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public class BiomepediaHomeScreen extends AbstractBiomepediaScreen {
public static final String TRANSLATIONS_URL = "https://crowdin.com/project/oh-the-biomes-youll-go";
public static final ResourceLocation BIOMEPEDIA_LOCATION = BYG.createLocation("textures/gui/biomepedia_book_gui.png");
public static final String DOWNLOAD_URL = ModPlatform.INSTANCE.curseForgeURL();
public static final ResourceLocation BOOK_TEXTURES = new ResourceLocation("byg", "textures/gui/biomepedia.png");
public static final ResourceLocation BOOK_TEXTURES = BYG.createLocation("textures/gui/biomepedia.png");

int toolTipMaxWidth;
int textStartHeight;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@
import net.minecraft.client.gui.screens.inventory.AbstractContainerScreen;
import net.minecraft.client.gui.screens.inventory.InventoryScreen;
import net.minecraft.network.chat.Component;
import net.minecraft.resources.ResourceLocation;
import net.minecraft.world.entity.player.Inventory;
import net.minecraft.world.inventory.AbstractContainerMenu;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.injection.At;
import org.spongepowered.asm.mixin.injection.Inject;
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
import potionstudios.byg.BYG;
import potionstudios.byg.BYGConstants;
import potionstudios.byg.client.BiomepediaInventoryConfig;
import potionstudios.byg.client.gui.biomepedia.screen.BiomepediaHomeScreen;
Expand All @@ -36,7 +36,7 @@ protected void init(CallbackInfo ci) {
20, 18,
0, 220,
18,
new ResourceLocation("byg", "textures/gui/biomepedia.png"),
BYG.createLocation("textures/gui/biomepedia.png"),
256, 256,
(button) -> Minecraft.getInstance().setScreen(new BiomepediaHomeScreen(Component.literal(""))),
Component.literal("Lorem Ipsum")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@
import net.minecraft.client.gui.screens.inventory.AbstractContainerScreen;
import net.minecraft.client.gui.screens.inventory.InventoryScreen;
import net.minecraft.network.chat.Component;
import net.minecraft.resources.ResourceLocation;
import net.minecraft.world.entity.player.Inventory;
import net.minecraft.world.inventory.AbstractContainerMenu;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.injection.At;
import org.spongepowered.asm.mixin.injection.Inject;
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
import potionstudios.byg.BYG;
import potionstudios.byg.BYGConstants;
import potionstudios.byg.client.BiomepediaInventoryConfig;
import potionstudios.byg.client.gui.biomepedia.screen.BiomepediaHomeScreen;
Expand All @@ -36,7 +36,7 @@ protected void init(CallbackInfo ci) {
20, 18,
0, 220,
18,
new ResourceLocation("byg", "textures/gui/biomepedia.png"),
BYG.createLocation("textures/gui/biomepedia.png"),
256, 256,
(button) -> Minecraft.getInstance().setScreen(new BiomepediaHomeScreen(Component.literal(""))),
Component.literal("Lorem Ipsum")
Expand Down

0 comments on commit 1ef3778

Please sign in to comment.