Like constructor but returns null if pos is null, good if you just need to possibly censor coordinates @param pos The BlockPos, possibly null, to convert @return A BetterBlockPos or null if pos was null
(BlockPos pos)
| 71 | * @return A BetterBlockPos or null if pos was null |
| 72 | */ |
| 73 | public static BetterBlockPos from(BlockPos pos) { |
| 74 | if (pos == null) { |
| 75 | return null; |
| 76 | } |
| 77 | |
| 78 | return new BetterBlockPos(pos); |
| 79 | } |
| 80 | |
| 81 | @Override |
| 82 | public int hashCode() { |
no outgoing calls
no test coverage detected