CommandSender
, Entity
, Metadatable
, Nameable
, Permissible
, PersistentDataHolder
, ServerOperator
AbstractHorse
, Cat
, ChestedHorse
, Donkey
, Horse
, Llama
, Mule
, Parrot
, SkeletonHorse
, TraderLlama
, Wolf
, ZombieHorse
public interface Tameable extends Entity
Entity.Spigot
Modifier and Type | Method | Description |
---|---|---|
@Nullable AnimalTamer |
getOwner() |
Gets the current owning AnimalTamer
|
boolean |
isTamed() |
Check if this is tamed
|
void |
setOwner(@Nullable AnimalTamer tamer) |
Set this to be owned by given AnimalTamer.
|
void |
setTamed(boolean tame) |
Sets if this has been tamed.
|
getName, sendMessage, sendMessage
addPassenger, addScoreboardTag, eject, getBoundingBox, getEntityId, getFacing, getFallDistance, getFireTicks, getHeight, getLastDamageCause, getLocation, getLocation, getMaxFireTicks, getNearbyEntities, getPassenger, getPassengers, getPistonMoveReaction, getPortalCooldown, getPose, getScoreboardTags, getServer, getTicksLived, getType, getUniqueId, getVehicle, getVelocity, getWidth, getWorld, hasGravity, isCustomNameVisible, isDead, isEmpty, isGlowing, isInsideVehicle, isInvulnerable, isOnGround, isPersistent, isSilent, isValid, leaveVehicle, playEffect, remove, removePassenger, removeScoreboardTag, setCustomNameVisible, setFallDistance, setFireTicks, setGlowing, setGravity, setInvulnerable, setLastDamageCause, setPassenger, setPersistent, setPortalCooldown, setRotation, setSilent, setTicksLived, setVelocity, spigot, teleport, teleport, teleport, teleport
getMetadata, hasMetadata, removeMetadata, setMetadata
getCustomName, setCustomName
addAttachment, addAttachment, addAttachment, addAttachment, getEffectivePermissions, hasPermission, hasPermission, isPermissionSet, isPermissionSet, recalculatePermissions, removeAttachment
getPersistentDataContainer
isOp, setOp
boolean isTamed()
If something is tamed then a player can not tame it through normal methods, even if it does not belong to anyone in particular.
void setTamed(boolean tame)
If something is tamed then a player can not tame it through normal methods, even if it does not belong to anyone in particular.
tame
- true if tame@Nullable @Nullable AnimalTamer getOwner()
void setOwner(@Nullable @Nullable AnimalTamer tamer)
If the owner is not null, this will be tamed and will have any current path it is following removed. If the owner is set to null, this will be untamed, and the current owner removed.
tamer
- the AnimalTamer who should own thisCopyright © 2020. All rights reserved.