Class DestinationUtil

java.lang.Object
com.kamikazejam.kamicommon.util.teleport.DestinationUtil

public class DestinationUtil extends Object
  • 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

      @Contract("null -> null") public static Block nextSolid(Iterator<Block> iter)
    • nextBeforeSolid

      @Contract("null -> null") public static Block nextBeforeSolid(Iterator<Block> iter)
    • moveUp

      @NotNull public static @NotNull Location moveUp(@NotNull @NotNull Location location)
    • canStandIn

      public static boolean canStandIn(@NotNull @NotNull Location location)
    • canStandIn

      public static boolean canStandIn(@NotNull @NotNull World world, int x, int y, int z)
    • isSolid

      public static boolean isSolid(@NotNull @NotNull World world, int x, int y, int z)
    • moveLocationToBlock

      @NotNull public static @NotNull Location moveLocationToBlock(@NotNull @NotNull Location location, @NotNull @NotNull Block block)
    • moveLocationToBlockCoords

      @NotNull public static @NotNull Location moveLocationToBlockCoords(@NotNull @NotNull Location location, int x, int y, int z)