mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-24 05:54:41 +00:00
Major things to note: Class renames: https://gist.github.com/LexManos/44dd211f90f498ad4015279b103dff86 Tile Entities are now packed in the ChunkData packet. Forge intends to work around this to better support large moded worlds, but for the time being modders should implement the new function carefully and only send what data they need to! Minecraft's codebase now has annotations, these are directly from Mojang and should be adheared to! Added support for package-info.java's containing @Nullable information for all MC code base.
56 lines
2.9 KiB
Diff
56 lines
2.9 KiB
Diff
--- ../src-base/minecraft/net/minecraft/block/BlockSnow.java
|
|
+++ ../src-work/minecraft/net/minecraft/block/BlockSnow.java
|
|
@@ -75,7 +75,7 @@
|
|
{
|
|
IBlockState iblockstate = p_176196_1_.func_180495_p(p_176196_2_.func_177977_b());
|
|
Block block = iblockstate.func_177230_c();
|
|
- return block != Blocks.field_150432_aD && block != Blocks.field_150403_cj ? (iblockstate.func_185904_a() == Material.field_151584_j ? true : (block == this && ((Integer)iblockstate.func_177229_b(field_176315_a)).intValue() >= 7 ? true : iblockstate.func_185914_p() && iblockstate.func_185904_a().func_76230_c())) : false;
|
|
+ return block != Blocks.field_150432_aD && block != Blocks.field_150403_cj ? (iblockstate.func_177230_c().isLeaves(iblockstate, p_176196_1_, p_176196_2_.func_177977_b()) ? true : (block == this && ((Integer)iblockstate.func_177229_b(field_176315_a)).intValue() >= 7 ? true : iblockstate.func_185914_p() && iblockstate.func_185904_a().func_76230_c())) : false;
|
|
}
|
|
|
|
public void func_189540_a(IBlockState p_189540_1_, World p_189540_2_, BlockPos p_189540_3_, Block p_189540_4_)
|
|
@@ -87,7 +87,6 @@
|
|
{
|
|
if (!this.func_176196_c(p_176314_1_, p_176314_2_))
|
|
{
|
|
- this.func_176226_b(p_176314_1_, p_176314_2_, p_176314_3_, 0);
|
|
p_176314_1_.func_175698_g(p_176314_2_);
|
|
return false;
|
|
}
|
|
@@ -99,9 +98,8 @@
|
|
|
|
public void func_180657_a(World p_180657_1_, EntityPlayer p_180657_2_, BlockPos p_180657_3_, IBlockState p_180657_4_, @Nullable TileEntity p_180657_5_, @Nullable ItemStack p_180657_6_)
|
|
{
|
|
- func_180635_a(p_180657_1_, p_180657_3_, new ItemStack(Items.field_151126_ay, ((Integer)p_180657_4_.func_177229_b(field_176315_a)).intValue() + 1, 0));
|
|
+ super.func_180657_a(p_180657_1_, p_180657_2_, p_180657_3_, p_180657_4_, p_180657_5_, p_180657_6_);
|
|
p_180657_1_.func_175698_g(p_180657_3_);
|
|
- p_180657_2_.func_71029_a(StatList.func_188055_a(this));
|
|
}
|
|
|
|
@Nullable
|
|
@@ -112,14 +110,13 @@
|
|
|
|
public int func_149745_a(Random p_149745_1_)
|
|
{
|
|
- return 0;
|
|
+ return 1;
|
|
}
|
|
|
|
public void func_180650_b(World p_180650_1_, BlockPos p_180650_2_, IBlockState p_180650_3_, Random p_180650_4_)
|
|
{
|
|
if (p_180650_1_.func_175642_b(EnumSkyBlock.BLOCK, p_180650_2_) > 11)
|
|
{
|
|
- this.func_176226_b(p_180650_1_, p_180650_2_, p_180650_1_.func_180495_p(p_180650_2_), 0);
|
|
p_180650_1_.func_175698_g(p_180650_2_);
|
|
}
|
|
}
|
|
@@ -153,6 +150,8 @@
|
|
return ((Integer)p_176201_1_.func_177229_b(field_176315_a)).intValue() - 1;
|
|
}
|
|
|
|
+ @Override public int quantityDropped(IBlockState state, int fortune, Random random){ return ((Integer)state.func_177229_b(field_176315_a)) + 1; }
|
|
+
|
|
protected BlockStateContainer func_180661_e()
|
|
{
|
|
return new BlockStateContainer(this, new IProperty[] {field_176315_a});
|