mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-20 20:22:28 +00:00
Some notes: Almost all int x, int y, int z parameters have been changed to BlockPos class ForgeDirection has been removed, replaced by net.minecraft.util.EnumFacing. All FML classes have moved from packet cpw.mods.fml to net.minecraftforge.fml Fluid Rendering has been disabled for the time being, to be re-evaulated and a test mod created for it. Minecraft now uses a Model based system for rendering blocks and Items. The intention is to expand the model format to better suit modder's needed once it is evaulated. As such, The model loaders from Forge have been removed, to be replaced by expanding vanilla's model format. Metadata has been extracted out in Minecraft to IBlockState, which holds a list of properties instead of magic number metadata. DO NOT listen to the fearmongering, you can do EVERYTHING with block states you could previously with metadata. Stencil Bits are disabled entirely by for the main Display, Modders must enable and recreate the FrameBuffer if they wish to use Stencil Bits.
54 lines
2.7 KiB
Diff
54 lines
2.7 KiB
Diff
--- ../src-base/minecraft/net/minecraft/block/BlockSnow.java
|
|
+++ ../src-work/minecraft/net/minecraft/block/BlockSnow.java
|
|
@@ -80,7 +80,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 ? (block.func_149688_o() == Material.field_151584_j ? true : (block == this && ((Integer)iblockstate.func_177229_b(field_176315_a)).intValue() == 7 ? true : block.func_149662_c() && block.field_149764_J.func_76230_c())) : false;
|
|
+ return block != Blocks.field_150432_aD && block != Blocks.field_150403_cj ? (block.isLeaves(p_176196_1_, p_176196_2_.func_177977_b()) ? true : (block == this && ((Integer)iblockstate.func_177229_b(field_176315_a)).intValue() == 7 ? true : block.func_149662_c() && block.field_149764_J.func_76230_c())) : false;
|
|
}
|
|
|
|
public void func_176204_a(World p_176204_1_, BlockPos p_176204_2_, IBlockState p_176204_3_, Block p_176204_4_)
|
|
@@ -92,7 +92,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;
|
|
}
|
|
@@ -104,9 +103,8 @@
|
|
|
|
public void func_180657_a(World p_180657_1_, EntityPlayer p_180657_2_, BlockPos p_180657_3_, IBlockState p_180657_4_, TileEntity p_180657_5_)
|
|
{
|
|
- 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_1_.func_175698_g(p_180657_3_);
|
|
- p_180657_2_.func_71029_a(StatList.field_75934_C[Block.func_149682_b(this)]);
|
|
}
|
|
|
|
public Item func_180660_a(IBlockState p_180660_1_, Random p_180660_2_, int p_180660_3_)
|
|
@@ -116,14 +114,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,4 +150,6 @@
|
|
{
|
|
return new BlockState(this, new IProperty[] {field_176315_a});
|
|
}
|
|
+
|
|
+ @Override public int quantityDropped(IBlockState state, int fortune, Random random){ return ((Integer)state.func_177229_b(field_176315_a)) + 1; }
|
|
}
|