Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Override
- public Iterable<MutableBlockPos> getCandidates(EntityPlayer player, BlockPos pos, EnumFacing side) {
- BlockPos min = new BlockPos(-1, -1, -1);
- min = side.getAxisDirection() == AxisDirection.POSITIVE ? min.add(side.getDirectionVec()) : min.subtract(side.getDirectionVec());
- BlockPos max = new BlockPos(1, 1, 1);
- max = side.getAxisDirection() == AxisDirection.NEGATIVE ? max.add(side.getDirectionVec()) : max.subtract(side.getDirectionVec());
- return BlockPos.getAllInBoxMutable(pos.add(min), pos.add(max));
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement