Class CustomEntity.MountBone

java.lang.Object
dev.lone.itemsadder.api.CustomEntity.Bone
dev.lone.itemsadder.api.CustomEntity.MountBone
Enclosing class:
CustomEntity

public static class CustomEntity.MountBone extends CustomEntity.Bone
  • Constructor Details

    • MountBone

      public MountBone()
  • Method Details

    • getPassenger

      @Nullable public @Nullable org.bukkit.entity.LivingEntity getPassenger()
      Returns:
      May be null if the bone is not occupied
    • setPassenger

      public boolean setPassenger(org.bukkit.entity.LivingEntity entity)
      Sets or replaces the passenger of the mount bone
      Parameters:
      entity - passenger to set
    • removePassenger

      public void removePassenger()
    • setLocked

      public void setLocked(boolean locked)
    • isLocked

      public boolean isLocked()
    • setCanControl

      public void setCanControl(boolean canControl)
    • canControl

      public boolean canControl()