mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-19 11:59:25 +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
30 lines
1.4 KiB
Diff
30 lines
1.4 KiB
Diff
--- ../src-base/minecraft/net/minecraft/block/BlockVine.java
|
|
+++ ../src-work/minecraft/net/minecraft/block/BlockVine.java
|
|
@@ -28,7 +28,7 @@
|
|
import net.minecraftforge.fml.relauncher.Side;
|
|
import net.minecraftforge.fml.relauncher.SideOnly;
|
|
|
|
-public class BlockVine extends Block
|
|
+public class BlockVine extends Block implements net.minecraftforge.common.IShearable
|
|
{
|
|
public static final PropertyBool field_176277_a = PropertyBool.func_177716_a("up");
|
|
public static final PropertyBool field_176273_b = PropertyBool.func_177716_a("north");
|
|
@@ -459,7 +459,17 @@
|
|
|
|
return i;
|
|
}
|
|
+ /*************************FORGE START***********************************/
|
|
+ @Override public boolean isLadder(IBlockState state, IBlockAccess world, BlockPos pos, EntityLivingBase entity){ return true; }
|
|
+ @Override public boolean isShearable(ItemStack item, IBlockAccess world, BlockPos pos){ return true; }
|
|
+ @Override
|
|
+ public java.util.List<ItemStack> onSheared(ItemStack item, IBlockAccess world, BlockPos pos, int fortune)
|
|
+ {
|
|
+ return java.util.Arrays.asList(new ItemStack(this, 1));
|
|
+ }
|
|
+ /*************************FORGE END***********************************/
|
|
|
|
+
|
|
public BlockFaceShape func_193383_a(IBlockAccess p_193383_1_, IBlockState p_193383_2_, BlockPos p_193383_3_, EnumFacing p_193383_4_)
|
|
{
|
|
return BlockFaceShape.UNDEFINED;
|