Object TeleportUtils
-
- All Implemented Interfaces:
public class TeleportUtils
-
-
Field Summary
Fields Modifier and Type Field Description private final Predicate<BlockInChunkSnapshot>
safeSpotPredicate
public final static TeleportUtils
INSTANCE
-
Method Summary
Modifier and Type Method Description final CompletableFuture<Location>
findSafeLocationInSameChunkAsync(Location origin, Integer minY, Integer maxY)
final BlockInChunkSnapshot
findSafeLocationInSameChunk(BlockInChunkSnapshot origin, Integer minY, Integer maxY)
final BlockInChunkSnapshot
loopInSquare(ChunkSnapshot chunk, Integer startX, Integer startZ, Integer y, Integer minY, Integer maxY, Predicate<BlockInChunkSnapshot> predicate)
final Double
getCoordinateTranslationFactor(World from, World to)
final Location
getScaledLocationInOtherWorld(Location origin, World newWorld)
final Location
normalizeLocation(Location location)
final Boolean
isSafeToStandInside(Material material)
final Boolean
isSafeToStandOn(Material material)
final Predicate<BlockInChunkSnapshot>
getSafeSpotPredicate()
-
-
Method Detail
-
findSafeLocationInSameChunkAsync
final CompletableFuture<Location> findSafeLocationInSameChunkAsync(Location origin, Integer minY, Integer maxY)
-
findSafeLocationInSameChunk
final BlockInChunkSnapshot findSafeLocationInSameChunk(BlockInChunkSnapshot origin, Integer minY, Integer maxY)
-
loopInSquare
final BlockInChunkSnapshot loopInSquare(ChunkSnapshot chunk, Integer startX, Integer startZ, Integer y, Integer minY, Integer maxY, Predicate<BlockInChunkSnapshot> predicate)
-
getCoordinateTranslationFactor
final Double getCoordinateTranslationFactor(World from, World to)
-
getScaledLocationInOtherWorld
final Location getScaledLocationInOtherWorld(Location origin, World newWorld)
-
normalizeLocation
final Location normalizeLocation(Location location)
-
isSafeToStandInside
final Boolean isSafeToStandInside(Material material)
-
isSafeToStandOn
final Boolean isSafeToStandOn(Material material)
-
getSafeSpotPredicate
final Predicate<BlockInChunkSnapshot> getSafeSpotPredicate()
-
-
-
-