public MultiBlockChangeInfo(Location location, WrappedBlockData data) { this.data = data; this.chunk = new ChunkCoordIntPair(location.getBlockX() >> 4, location.getBlockZ() >> 4); this.setLocation(location); }
@Override public ChunkCoordIntPair getSpecific(Object generic) { if (MinecraftReflection.isChunkCoordIntPair(generic)) { if (COORD_X == null || COORD_Z == null) { FieldAccessor[] ints = Accessors.getFieldAccessorArray(COORD_PAIR_CLASS, int.class, true); COORD_X = ints[0]; COORD_Z = ints[1]; } return new ChunkCoordIntPair((Integer) COORD_X.get(generic), (Integer) COORD_Z.get(generic)); } // Otherwise, return NULL return null; }