Package net.citizensnpcs.api.util
Class SpigotUtil
java.lang.Object
net.citizensnpcs.api.util.SpigotUtil
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classSpigot has changed InventoryViews to be an abstract class instead of an interface necessitating an abstraction over the existing API to avoid java runtime errors. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleancheckYSafe(double y, World world) static NamespacedKeystatic NamespacedKeystatic intgetMaxNameLength(EntityType type) static int[]static booleanstatic booleanisRegistryKeyed(Class<?> clazz) static booleanstatic DurationparseDuration(String raw, TimeUnit defaultUnits) static ItemStackparseItemStack(ItemStack base, String item) static CompletableFuture<Boolean> teleportAsync(Entity entity, Location location) static CompletableFuture<Boolean> teleportAsync(Entity entity, Location location, PlayerTeleportEvent.TeleportCause cause)
-
Constructor Details
-
SpigotUtil
public SpigotUtil()
-
-
Method Details
-
checkYSafe
-
getKey
-
getKey
-
getMaxNameLength
-
getVersion
public static int[] getVersion() -
isFoliaServer
public static boolean isFoliaServer() -
isRegistryKeyed
-
isUsing1_13API
public static boolean isUsing1_13API() -
parseDuration
-
parseItemStack
-
teleportAsync
-
teleportAsync
public static CompletableFuture<Boolean> teleportAsync(Entity entity, Location location, PlayerTeleportEvent.TeleportCause cause)
-