Package dev.lone.itemsadder.api
Class CustomEntity.MountBone
java.lang.Object
dev.lone.itemsadder.api.CustomEntity.Bone
dev.lone.itemsadder.api.CustomEntity.MountBone
- Enclosing class:
- CustomEntity
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean@Nullable org.bukkit.entity.LivingEntitybooleanisLocked()voidvoidsetCanControl(boolean canControl) voidsetLocked(boolean locked) booleansetPassenger(org.bukkit.entity.LivingEntity entity) Sets or replaces the passenger of the mount boneMethods inherited from class dev.lone.itemsadder.api.CustomEntity.Bone
getColor, getEnchanted, getId, getLocation, getName, getOrdinal, setColor, setEnchanted
-
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()
-