Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //change
- private boolean isOnVine(int j_offset) {
- return getBaseBlockId(j_offset) == Block.vine.blockID;
- }
- //to
- private boolean isOnVine(int j_offset) {
- return isvine(getBaseBlockId(j_offset);
- }
- //change
- private boolean isBehindVine(int j_offset) {
- return getRemoteBlockId(j_offset) == Block.vine.blockID;
- }
- //to
- private boolean isBehindVine(int j_offset) {
- return isVine(getRemoteBlockId(j_offset));
- }
- //change
- public static boolean isLadderOrVine(int blockId) {
- return blockId == Block.ladder.blockID || blockId == Block.vine.blockID || isBlockIdOfType(blockId, _ladderKitLadderTypes);
- }
- //to
- public static boolean isLadderOrVine(int blockId) {
- return isLadder(blockId) || isVine(blockId) || isBlockIdOfType(blockId, _ladderKitLadderTypes);
- }
- //and in the bottom where you set _isLadder using reflection, the signature has changed
- _isLadder = Reflect.GetMethod(Block.class, new Name("isLadder"), false, new Class[]{World.class, Integer.TYPE, Integer.TYPE, Integer.TYPE});
- //should be: (paired with the correct import of net.minecraft.entity.EntityLivingBase)
- _isLadder = Reflect.GetMethod(Block.class, new Name("isLadder"), false, new Class[]{World.class, Integer.TYPE, Integer.TYPE, Integer.TYPE, EntityLivingBase.class});
- //which of course means you're going to have to change the signature of
- public static boolean isClimbable(World world, int i, int j, int k)
- //to
- public static boolean isClimbable(World world, int i, int j, int k, EntityLivingBase entity)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement