Modifier and Type | Method and Description |
---|---|
boolean |
contains(net.minecraft.util.math.Vec3d point)
Returns true if the point is enclosed by this zone, such that none of the coordinates lie outside the range
specified by this zone.
|
double |
distanceTo(net.minecraft.util.math.BlockPos pos)
Returns the smallest possible distance that the pos would have to be changed by in order for
contains(Vec3d) to return true. |
double |
distanceToSquared(net.minecraft.util.math.BlockPos pos)
Returns
distanceTo(BlockPos) but squared. |
net.minecraft.util.math.BlockPos |
getRandomBlockPos(java.util.Random rand)
Gets a random position that
contains(Vec3d) will return true. |
double distanceTo(net.minecraft.util.math.BlockPos pos)
contains(Vec3d)
to return true. If the position is already inside then this will return 0double distanceToSquared(net.minecraft.util.math.BlockPos pos)
distanceTo(BlockPos)
but squared. Usually this will be quicker to calculate.boolean contains(net.minecraft.util.math.Vec3d point)
net.minecraft.util.math.BlockPos getRandomBlockPos(java.util.Random rand)
contains(Vec3d)
will return true.