diff options
author | glowredman <35727266+glowredman@users.noreply.github.com> | 2023-04-18 21:42:00 +0200 |
---|---|---|
committer | glowredman <35727266+glowredman@users.noreply.github.com> | 2023-04-18 21:42:00 +0200 |
commit | 0f7fd77be8438727f8f42aed4d8faf17114c5785 (patch) | |
tree | 21d47382b143e0c859649da55ea331cc208fa4c7 /src/main | |
parent | c2869bc333831fae3286dc29db3a0d16f87be097 (diff) | |
download | GT5-Unofficial-0f7fd77be8438727f8f42aed4d8faf17114c5785.tar.gz GT5-Unofficial-0f7fd77be8438727f8f42aed4d8faf17114c5785.tar.bz2 GT5-Unofficial-0f7fd77be8438727f8f42aed4d8faf17114c5785.zip |
Transition away from deprecated methods/fields
Diffstat (limited to 'src/main')
4 files changed, 7 insertions, 5 deletions
diff --git a/src/main/java/com/github/technus/tectech/compatibility/openmodularturrets/tileentity/turretbase/TileTurretBaseEM.java b/src/main/java/com/github/technus/tectech/compatibility/openmodularturrets/tileentity/turretbase/TileTurretBaseEM.java index 47bba94c2e..d03f57bb76 100644 --- a/src/main/java/com/github/technus/tectech/compatibility/openmodularturrets/tileentity/turretbase/TileTurretBaseEM.java +++ b/src/main/java/com/github/technus/tectech/compatibility/openmodularturrets/tileentity/turretbase/TileTurretBaseEM.java @@ -70,7 +70,8 @@ public class TileTurretBaseEM extends TurretBaseTierFiveTileEntity { } private EMInstanceStackMap getFromHatch(GT_MetaTileEntity_Hatch_InputElemental hatch) { - hatch.updateTexture((byte) 8, (byte) 4); + hatch.onValueUpdate((byte) 4); + hatch.onTexturePageUpdate((byte) 8); return hatch.getContentHandler(); } } diff --git a/src/main/java/com/github/technus/tectech/recipe/TT_recipe.java b/src/main/java/com/github/technus/tectech/recipe/TT_recipe.java index c76d67bfaf..6f1d2bd37b 100644 --- a/src/main/java/com/github/technus/tectech/recipe/TT_recipe.java +++ b/src/main/java/com/github/technus/tectech/recipe/TT_recipe.java @@ -2,7 +2,6 @@ package com.github.technus.tectech.recipe; import static com.github.technus.tectech.util.CommonValues.EOH_TIER_FANCY_NAMES; import static com.google.common.math.LongMath.pow; -import static gregtech.api.enums.GT_Values.RES_PATH_GUI; import static gregtech.api.util.GT_Utility.formatNumbers; import static java.lang.Math.min; import static net.minecraft.util.EnumChatFormatting.BOLD; @@ -236,7 +235,7 @@ public class TT_recipe extends GT_Recipe { "gt.recipe.eyeofharmony", "Eye of Harmony", null, - RES_PATH_GUI + "basicmachines/Extractor", + "gregtech:textures/gui/basicmachines/Extractor", 1, 9 * 9, 1, diff --git a/src/main/java/com/github/technus/tectech/thing/item/EuMeterGT.java b/src/main/java/com/github/technus/tectech/thing/item/EuMeterGT.java index 645c89880f..5751efb343 100644 --- a/src/main/java/com/github/technus/tectech/thing/item/EuMeterGT.java +++ b/src/main/java/com/github/technus/tectech/thing/item/EuMeterGT.java @@ -14,6 +14,7 @@ import net.minecraft.item.Item; import net.minecraft.item.ItemStack; import net.minecraft.tileentity.TileEntity; import net.minecraft.util.EnumChatFormatting; +import net.minecraft.util.ResourceLocation; import net.minecraft.world.World; import net.minecraftforge.common.util.FakePlayer; @@ -146,7 +147,7 @@ public class EuMeterGT extends Item { } } if (!(aPlayer instanceof EntityPlayerMP)) { - GT_Utility.doSoundAtClient(Reference.MODID + ":fx_scan", 1, 1.0F, aX, aY, aZ); + GT_Utility.doSoundAtClient(new ResourceLocation(Reference.MODID, "fx_scan"), 1, 1.0F, aX, aY, aZ); } return false; } diff --git a/src/main/java/com/github/technus/tectech/thing/item/TeslaStaff.java b/src/main/java/com/github/technus/tectech/thing/item/TeslaStaff.java index b2ffd6bb07..88028f910c 100644 --- a/src/main/java/com/github/technus/tectech/thing/item/TeslaStaff.java +++ b/src/main/java/com/github/technus/tectech/thing/item/TeslaStaff.java @@ -11,6 +11,7 @@ import net.minecraft.entity.player.EntityPlayer; import net.minecraft.entity.player.EntityPlayerMP; import net.minecraft.item.Item; import net.minecraft.item.ItemStack; +import net.minecraft.util.ResourceLocation; import com.github.technus.tectech.Reference; import com.github.technus.tectech.util.CommonValues; @@ -40,7 +41,7 @@ public final class TeslaStaff extends Item { double aX = aPlayer.posX; double aY = aPlayer.posY; double aZ = aPlayer.posZ; - GT_Utility.doSoundAtClient(Reference.MODID + ":fx_scan", 1, 1.0F, aX, aY, aZ); + GT_Utility.doSoundAtClient(new ResourceLocation(Reference.MODID, "fx_scan"), 1, 1.0F, aX, aY, aZ); } return false; } |