Class DestinationUtil
java.lang.Object
com.kamikazejam.kamicommon.util.teleport.DestinationUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
canStandIn
(@NotNull Location location) static boolean
canStandIn
(@NotNull World world, int x, int y, int z) static @NotNull BlockIterator
createHeadlessIterator
(@NotNull LivingEntity livingEntity) static @Nullable Location
getJumpLocation
(@NotNull LivingEntity livingEntity) static @NotNull Player
getPlayer
(CommandSender sender) static @Nullable Location
getThatLocation
(@NotNull LivingEntity livingEntity) static @Nullable Location
getThereLocation
(@NotNull LivingEntity livingEntity) static boolean
static @NotNull Location
moveLocationToBlock
(@NotNull Location location, @NotNull Block block) static @NotNull Location
moveLocationToBlockCoords
(@NotNull Location location, int x, int y, int z) static @NotNull Location
static Block
nextBeforeSolid
(Iterator<Block> iter) static Block
-
Constructor Details
-
DestinationUtil
public DestinationUtil()
-
-
Method Details
-
getPlayer
@Contract("null -> fail") @NotNull public static @NotNull Player getPlayer(CommandSender sender) throws KamiCommonException - Throws:
KamiCommonException
-
getThatLocation
@Nullable public static @Nullable Location getThatLocation(@NotNull @NotNull LivingEntity livingEntity) -
getThereLocation
@Nullable public static @Nullable Location getThereLocation(@NotNull @NotNull LivingEntity livingEntity) -
getJumpLocation
@Nullable public static @Nullable Location getJumpLocation(@NotNull @NotNull LivingEntity livingEntity) -
createHeadlessIterator
@NotNull public static @NotNull BlockIterator createHeadlessIterator(@NotNull @NotNull LivingEntity livingEntity) -
nextSolid
-
nextBeforeSolid
-
moveUp
-
canStandIn
-
canStandIn
-
isSolid
-
moveLocationToBlock
-
moveLocationToBlockCoords
-