(@NotNull Vector direction)
| 201 | } |
| 202 | |
| 203 | private double getZLength(@NotNull Vector direction) { |
| 204 | return Math.abs(direction.getZ()); |
| 205 | } |
| 206 | |
| 207 | private double getPosition(double direction, double position, int blockPosition) { |
| 208 | return direction > 0 ? (position - blockPosition) : (blockPosition + 1 - position); |