Class DestinationUtil
java.lang.Object
com.kamikazejam.kamicommon.util.teleport.DestinationUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleancanStandIn(@NotNull Location location) static booleancanStandIn(@NotNull World world, int x, int y, int z) static @NotNull BlockIteratorcreateHeadlessIterator(@NotNull LivingEntity livingEntity) static @Nullable LocationgetJumpLocation(@NotNull LivingEntity livingEntity) static @NotNull PlayergetPlayer(CommandSender sender) static @Nullable LocationgetThatLocation(@NotNull LivingEntity livingEntity) static @Nullable LocationgetThereLocation(@NotNull LivingEntity livingEntity) static booleanstatic @NotNull LocationmoveLocationToBlock(@NotNull Location location, @NotNull Block block) static @NotNull LocationmoveLocationToBlockCoords(@NotNull Location location, int x, int y, int z) static @NotNull Locationstatic BlocknextBeforeSolid(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
-