made encode and decode positions on BranchDestructionData
@@ -385,13 +385,13 @@ public class BranchDestructionData {
// Generic
///////////////////////////////////////////////////////////
- private int encodeRelBlockPos(BlockPos relPos) {
+ public static int encodeRelBlockPos(BlockPos relPos) {
return (((relPos.getX() + 64) & 0xFF) << 16) |
(((relPos.getY() + 64) & 0xFF) << 8) |
(((relPos.getZ() + 64) & 0xFF)) ;
}
- private BlockPos decodeRelPos(int encoded) {
+ public static BlockPos decodeRelPos(int encoded) {
return new BlockPos(
(((encoded >> 16) & 0xFF) - 64),
(((encoded >> 8) & 0xFF) - 64),
