Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make getSubItems non-client only. Use it for Ingredient iteration.
- Loading branch information
Showing
18 changed files
with
190 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
patches/minecraft/net/minecraft/item/ItemAppleGold.java.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
--- ../src-base/minecraft/net/minecraft/item/ItemAppleGold.java | ||
+++ ../src-work/minecraft/net/minecraft/item/ItemAppleGold.java | ||
@@ -47,7 +47,6 @@ | ||
} | ||
} | ||
|
||
- @SideOnly(Side.CLIENT) | ||
public void func_150895_a(CreativeTabs p_150895_1_, NonNullList<ItemStack> p_150895_2_) | ||
{ | ||
if (this.func_194125_a(p_150895_1_)) |
18 changes: 18 additions & 0 deletions
18
patches/minecraft/net/minecraft/item/ItemBanner.java.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
--- ../src-base/minecraft/net/minecraft/item/ItemBanner.java | ||
+++ ../src-work/minecraft/net/minecraft/item/ItemBanner.java | ||
@@ -133,7 +133,6 @@ | ||
func_185054_a(p_77624_1_, p_77624_3_); | ||
} | ||
|
||
- @SideOnly(Side.CLIENT) | ||
public void func_150895_a(CreativeTabs p_150895_1_, NonNullList<ItemStack> p_150895_2_) | ||
{ | ||
if (this.func_194125_a(p_150895_1_)) | ||
@@ -157,7 +156,6 @@ | ||
return itemstack; | ||
} | ||
|
||
- @SideOnly(Side.CLIENT) | ||
public CreativeTabs func_77640_w() | ||
{ | ||
return CreativeTabs.field_78031_c; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
--- ../src-base/minecraft/net/minecraft/item/ItemCoal.java | ||
+++ ../src-work/minecraft/net/minecraft/item/ItemCoal.java | ||
@@ -19,7 +19,6 @@ | ||
return p_77667_1_.func_77960_j() == 1 ? "item.charcoal" : "item.coal"; | ||
} | ||
|
||
- @SideOnly(Side.CLIENT) | ||
public void func_150895_a(CreativeTabs p_150895_1_, NonNullList<ItemStack> p_150895_2_) | ||
{ | ||
if (this.func_194125_a(p_150895_1_)) |
10 changes: 10 additions & 0 deletions
10
patches/minecraft/net/minecraft/item/ItemEnchantedBook.java.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
--- ../src-base/minecraft/net/minecraft/item/ItemEnchantedBook.java | ||
+++ ../src-work/minecraft/net/minecraft/item/ItemEnchantedBook.java | ||
@@ -101,7 +101,6 @@ | ||
return itemstack; | ||
} | ||
|
||
- @SideOnly(Side.CLIENT) | ||
public void func_150895_a(CreativeTabs p_150895_1_, NonNullList<ItemStack> p_150895_2_) | ||
{ | ||
if (p_150895_1_ == CreativeTabs.field_78027_g) |
10 changes: 10 additions & 0 deletions
10
patches/minecraft/net/minecraft/item/ItemFishFood.java.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
--- ../src-base/minecraft/net/minecraft/item/ItemFishFood.java | ||
+++ ../src-work/minecraft/net/minecraft/item/ItemFishFood.java | ||
@@ -47,7 +47,6 @@ | ||
super.func_77849_c(p_77849_1_, p_77849_2_, p_77849_3_); | ||
} | ||
|
||
- @SideOnly(Side.CLIENT) | ||
public void func_150895_a(CreativeTabs p_150895_1_, NonNullList<ItemStack> p_150895_2_) | ||
{ | ||
if (this.func_194125_a(p_150895_1_)) |
18 changes: 18 additions & 0 deletions
18
patches/minecraft/net/minecraft/item/ItemMonsterPlacer.java.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
--- ../src-base/minecraft/net/minecraft/item/ItemMonsterPlacer.java | ||
+++ ../src-work/minecraft/net/minecraft/item/ItemMonsterPlacer.java | ||
@@ -250,7 +250,6 @@ | ||
} | ||
} | ||
|
||
- @SideOnly(Side.CLIENT) | ||
public void func_150895_a(CreativeTabs p_150895_1_, NonNullList<ItemStack> p_150895_2_) | ||
{ | ||
if (this.func_194125_a(p_150895_1_)) | ||
@@ -264,7 +263,6 @@ | ||
} | ||
} | ||
|
||
- @SideOnly(Side.CLIENT) | ||
public static void func_185078_a(ItemStack p_185078_0_, ResourceLocation p_185078_1_) | ||
{ | ||
NBTTagCompound nbttagcompound = p_185078_0_.func_77942_o() ? p_185078_0_.func_77978_p() : new NBTTagCompound(); |
10 changes: 10 additions & 0 deletions
10
patches/minecraft/net/minecraft/item/ItemPotion.java.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
--- ../src-base/minecraft/net/minecraft/item/ItemPotion.java | ||
+++ ../src-work/minecraft/net/minecraft/item/ItemPotion.java | ||
@@ -120,7 +120,6 @@ | ||
return super.func_77636_d(p_77636_1_) || !PotionUtils.func_185189_a(p_77636_1_).isEmpty(); | ||
} | ||
|
||
- @SideOnly(Side.CLIENT) | ||
public void func_150895_a(CreativeTabs p_150895_1_, NonNullList<ItemStack> p_150895_2_) | ||
{ | ||
if (this.func_194125_a(p_150895_1_)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
patches/minecraft/net/minecraft/item/ItemTippedArrow.java.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
--- ../src-base/minecraft/net/minecraft/item/ItemTippedArrow.java | ||
+++ ../src-work/minecraft/net/minecraft/item/ItemTippedArrow.java | ||
@@ -31,7 +31,6 @@ | ||
return entitytippedarrow; | ||
} | ||
|
||
- @SideOnly(Side.CLIENT) | ||
public void func_150895_a(CreativeTabs p_150895_1_, NonNullList<ItemStack> p_150895_2_) | ||
{ | ||
if (this.func_194125_a(p_150895_1_)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
efd8b38
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems to cause a crash server side if getSubItems is called on an ItemBlock because Block#getSubBlocks is seems to be client side only still
efd8b38
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ugh I Specifically fucking checked that.. I swear eclipse doesn't like saving 1/2 my modifications...
efd8b38
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If a modder were to call it it does crash but when crafting it doesn't seem to
efd8b38
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thats because it's only called for OreDict wildcards, which vanilla crafting never does.
368d206
REALLY wish Mojang wouldnt strip this method.
efd8b38
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah didn't realize that sorry about that... I did notice you fixed it, but one last thing in EnumFlowerType getTypes is used in getSubBlocks and it is client side only as well