MCPcopy Create free account
hub / github.com/Teneted/Tenet / getPosition

Method getPosition

src/main/java/org/bukkit/util/BlockIterator.java:207–209  ·  view source on GitHub ↗
(double direction, double position, int blockPosition)

Source from the content-addressed store, hash-verified

205 }
206
207 private double getPosition(double direction, double position, int blockPosition) {
208 return direction > 0 ? (position - blockPosition) : (blockPosition + 1 - position);
209 }
210
211 private double getXPosition(@NotNull Vector direction, @NotNull Vector position, @NotNull Block block) {
212 return getPosition(direction.getX(), position.getX(), block.getX());

Callers 3

getXPositionMethod · 0.95
getYPositionMethod · 0.95
getZPositionMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected