diff options
author | Jason Mitchell <mitchej@gmail.com> | 2023-05-01 02:45:56 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-01 11:45:56 +0200 |
commit | b2c8cfb4ec8b82337a95f51364277964ec968b52 (patch) | |
tree | d4cf94acc93249cd649b33ec13c5b0d75f1f75db /src/main/java/gtPlusPlus/plugin/fishing/item | |
parent | d2eda84e457d549ad9a51f40e9dd159147a141f8 (diff) | |
download | GT5-Unofficial-b2c8cfb4ec8b82337a95f51364277964ec968b52.tar.gz GT5-Unofficial-b2c8cfb4ec8b82337a95f51364277964ec968b52.tar.bz2 GT5-Unofficial-b2c8cfb4ec8b82337a95f51364277964ec968b52.zip |
ForgeDirection (#608)
* ForgeDirection WIP
* Fix GTPP_Render_MachineBlock
Fix handling of getTexture with facing mask for pipes
Kill a bunch of magic numbers
* spotlessApply (#612)
Co-authored-by: GitHub GTNH Actions <>
* Bump bw/tt deps
---------
Co-authored-by: Léa Gris <lea.gris@noiraude.net>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Diffstat (limited to 'src/main/java/gtPlusPlus/plugin/fishing/item')
-rw-r--r-- | src/main/java/gtPlusPlus/plugin/fishing/item/BaseFish.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/main/java/gtPlusPlus/plugin/fishing/item/BaseFish.java b/src/main/java/gtPlusPlus/plugin/fishing/item/BaseFish.java index e0af27a504..845358829d 100644 --- a/src/main/java/gtPlusPlus/plugin/fishing/item/BaseFish.java +++ b/src/main/java/gtPlusPlus/plugin/fishing/item/BaseFish.java @@ -27,11 +27,13 @@ public class BaseFish extends ItemFood { this.isCooked = cooked; } + @Override public int func_150905_g(ItemStack p_150905_1_) { BaseFishTypes fishtype = BaseFishTypes.getFishTypeFromStackDamage(p_150905_1_); return this.isCooked && fishtype.isCooked() ? fishtype.func_150970_e() : fishtype.func_150975_c(); } + @Override public float func_150906_h(ItemStack p_150906_1_) { BaseFishTypes fishtype = BaseFishTypes.getFishTypeFromStackDamage(p_150906_1_); return this.isCooked && fishtype.isCooked() ? fishtype.func_150977_f() : fishtype.func_150967_d(); @@ -40,12 +42,14 @@ public class BaseFish extends ItemFood { /** * Returns a string representing what this item does to a potion. */ + @Override public String getPotionEffect(ItemStack p_150896_1_) { return BaseFishTypes.getFishTypeFromStackDamage(p_150896_1_) == BaseFishTypes.PUFFERFISH ? PotionHelper.field_151423_m : null; } + @Override @SideOnly(Side.CLIENT) public void registerIcons(IIconRegister p_94581_1_) { BaseFishTypes[] afishtype = BaseFishTypes.values(); @@ -57,6 +61,7 @@ public class BaseFish extends ItemFood { } } + @Override protected void onFoodEaten(ItemStack fish, World world, EntityPlayer player) { BaseFishTypes fishtype = BaseFishTypes.getFishTypeFromStackDamage(fish); @@ -72,6 +77,7 @@ public class BaseFish extends ItemFood { /** * Gets an icon index based on an item's damage value */ + @Override @SideOnly(Side.CLIENT) public IIcon getIconFromDamage(int dmg) { BaseFishTypes fishtype = BaseFishTypes.getFishTypeFromDamageValue(dmg); @@ -81,6 +87,7 @@ public class BaseFish extends ItemFood { /** * returns a list of items with the same ID, but different meta (eg: dye returns 16 items) */ + @Override @SideOnly(Side.CLIENT) public void getSubItems(Item p_150895_1_, CreativeTabs p_150895_2_, List p_150895_3_) { BaseFishTypes[] afishtype = BaseFishTypes.values(); @@ -99,6 +106,7 @@ public class BaseFish extends ItemFood { * Returns the unlocalized name of this item. This version accepts an ItemStack so different stacks can have * different names based on their damage or NBT. */ + @Override public String getUnlocalizedName(ItemStack p_77667_1_) { BaseFishTypes fishtype = BaseFishTypes.getFishTypeFromStackDamage(p_77667_1_); return this.getUnlocalizedName() + "." |