Advertisement
kotoroshinoto

changes for Orientation.java

Sep 27th, 2013
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.54 KB | None | 0 0
  1. //change
  2.    private boolean isOnVine(int j_offset) {
  3.       return getBaseBlockId(j_offset) == Block.vine.blockID;
  4.    }
  5. //to
  6.    private boolean isOnVine(int j_offset) {
  7.       return isvine(getBaseBlockId(j_offset);
  8.    }
  9.  
  10. //change  
  11.    private boolean isBehindVine(int j_offset) {
  12.       return getRemoteBlockId(j_offset) == Block.vine.blockID;
  13.    }
  14. //to
  15.    private boolean isBehindVine(int j_offset) {
  16.       return isVine(getRemoteBlockId(j_offset));
  17.    }
  18. //change  
  19. public static boolean isLadderOrVine(int blockId) {
  20.       return blockId == Block.ladder.blockID || blockId == Block.vine.blockID || isBlockIdOfType(blockId, _ladderKitLadderTypes);
  21.    }
  22. //to  
  23. public static boolean isLadderOrVine(int blockId) {
  24.       return isLadder(blockId) || isVine(blockId) || isBlockIdOfType(blockId, _ladderKitLadderTypes);
  25.    }
  26.  
  27. //and in the bottom where you set _isLadder using reflection, the signature has changed
  28.  
  29. _isLadder = Reflect.GetMethod(Block.class, new Name("isLadder"), false, new Class[]{World.class, Integer.TYPE, Integer.TYPE, Integer.TYPE});
  30.  
  31. //should be: (paired with the correct import of net.minecraft.entity.EntityLivingBase)
  32. _isLadder = Reflect.GetMethod(Block.class, new Name("isLadder"), false, new Class[]{World.class, Integer.TYPE, Integer.TYPE, Integer.TYPE, EntityLivingBase.class});
  33.  
  34. //which of course means you're going to have to change the signature of
  35. public static boolean isClimbable(World world, int i, int j, int k)
  36.  
  37. //to
  38.  
  39. public static boolean isClimbable(World world, int i, int j, int k, EntityLivingBase entity)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement