Class VersionSupport

java.lang.Object
org.kingdoms.utils.versionsupport.VersionSupport

public final class VersionSupport extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    addDurability(@NonNull org.bukkit.inventory.ItemStack item, int durability)
     
    static @Nullable org.bukkit.block.Block
    getAttachedBlock(org.bukkit.block.Block sign)
     
    static int
    getMinWorldHeight(org.bukkit.World world)
     
    static org.bukkit.block.Block
    getOtherHalfIfDoor(org.bukkit.block.BlockState state)
     
    static org.bukkit.block.BlockFace
    getPlayerFacing(org.bukkit.entity.Player player)
     
    static void
    putSign(org.bukkit.block.Block sign, org.bukkit.block.BlockFace facing)
     
    static void
    rotate(org.bukkit.block.Block block, org.bukkit.Material material, org.bukkit.entity.Player player)
     
    static void
    setPassenger(org.bukkit.entity.Entity vehicle, org.bukkit.entity.Entity passenger)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • VersionSupport

      public VersionSupport()
  • Method Details

    • rotate

      public static void rotate(org.bukkit.block.Block block, org.bukkit.Material material, org.bukkit.entity.Player player)
    • setPassenger

      public static void setPassenger(org.bukkit.entity.Entity vehicle, org.bukkit.entity.Entity passenger)
    • putSign

      public static void putSign(org.bukkit.block.Block sign, org.bukkit.block.BlockFace facing)
    • addDurability

      public static void addDurability(@NonNull org.bukkit.inventory.ItemStack item, int durability)
    • getAttachedBlock

      public static @Nullable org.bukkit.block.Block getAttachedBlock(@Nonnull org.bukkit.block.Block sign)
    • getPlayerFacing

      public static org.bukkit.block.BlockFace getPlayerFacing(org.bukkit.entity.Player player)
    • getOtherHalfIfDoor

      public static org.bukkit.block.Block getOtherHalfIfDoor(org.bukkit.block.BlockState state)
    • getMinWorldHeight

      public static int getMinWorldHeight(org.bukkit.World world)