mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-27 23:45:44 +00:00
Some things to note: Netty is screwy so currently can't join single player. @cpw Crafting has been MAJORY reworked. The current GameRegistry functions are nooped, this is IN THE WORKS. Just need to move the recipe list to a full class registry, and then re implement the in-code recipe registration. Also, it IS advised that modders move to JSON, because ideally we'll see a S->C recipe syncing system in 1.13 which would allow servers to have custom recipes. OreDictionary currently 1/2 works, need to write a better algorithm for replacing ingredients. Please be patient Rendering: A lot of functions got a new float parameter, this is similar to partial ticks, needs more research
46 lines
1.6 KiB
Diff
46 lines
1.6 KiB
Diff
--- ../src-base/minecraft/net/minecraft/block/BlockBanner.java
|
|
+++ ../src-work/minecraft/net/minecraft/block/BlockBanner.java
|
|
@@ -90,16 +90,9 @@
|
|
|
|
public void func_180653_a(World p_180653_1_, BlockPos p_180653_2_, IBlockState p_180653_3_, float p_180653_4_, int p_180653_5_)
|
|
{
|
|
- ItemStack itemstack = this.func_185549_e(p_180653_1_, p_180653_2_);
|
|
-
|
|
- if (itemstack.func_190926_b())
|
|
{
|
|
super.func_180653_a(p_180653_1_, p_180653_2_, p_180653_3_, p_180653_4_, p_180653_5_);
|
|
}
|
|
- else
|
|
- {
|
|
- func_180635_a(p_180653_1_, p_180653_2_, itemstack);
|
|
- }
|
|
}
|
|
|
|
public boolean func_176196_c(World p_176196_1_, BlockPos p_176196_2_)
|
|
@@ -126,6 +119,25 @@
|
|
return BlockFaceShape.UNDEFINED;
|
|
}
|
|
|
|
+ @Override
|
|
+ public java.util.List<ItemStack> getDrops(IBlockAccess world, BlockPos pos, IBlockState state, int fortune)
|
|
+ {
|
|
+ TileEntity te = world.func_175625_s(pos);
|
|
+
|
|
+ java.util.List<ItemStack> ret = new java.util.ArrayList<ItemStack>();
|
|
+ if (te instanceof TileEntityBanner)
|
|
+ {
|
|
+ TileEntityBanner tileentitybanner = (TileEntityBanner)te;
|
|
+ ItemStack itemstack = tileentitybanner.func_190615_l();
|
|
+ ret.add(itemstack);
|
|
+ }
|
|
+ else
|
|
+ {
|
|
+ ret.add(new ItemStack(Items.field_179564_cE, 1, 0));
|
|
+ }
|
|
+ return ret;
|
|
+ }
|
|
+
|
|
public static class BlockBannerHanging extends BlockBanner
|
|
{
|
|
protected static final AxisAlignedBB field_185551_d = new AxisAlignedBB(0.0D, 0.0D, 0.875D, 1.0D, 0.78125D, 1.0D);
|