Package be.seeseemelk.mockbukkit.entity
Class EntityMock
java.lang.Object
org.bukkit.command.CommandSender.Spigot
org.bukkit.entity.Entity.Spigot
be.seeseemelk.mockbukkit.entity.EntityMock
- All Implemented Interfaces:
MessageTarget
,net.kyori.adventure.audience.Audience
,net.kyori.adventure.pointer.Pointered
,net.kyori.adventure.sound.Sound.Emitter
,net.kyori.adventure.text.event.HoverEventSource<net.kyori.adventure.text.event.HoverEvent.ShowEntity>
,org.bukkit.command.CommandSender
,org.bukkit.entity.Entity
,org.bukkit.metadata.Metadatable
,org.bukkit.Nameable
,org.bukkit.permissions.Permissible
,org.bukkit.permissions.ServerOperator
,org.bukkit.persistence.PersistentDataHolder
- Direct Known Subclasses:
AbstractProjectileMock
,ExperienceOrbMock
,HangingMock
,ItemEntityMock
,LivingEntityMock
,SimpleEntityMock
,VehicleMock
public abstract class EntityMock
extends org.bukkit.entity.Entity.Spigot
implements org.bukkit.entity.Entity, MessageTarget
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.bukkit.entity.Entity
org.bukkit.entity.Entity.Spigot
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
EntityMock
(@NotNull ServerMock server, @NotNull UUID uuid) -
Method Summary
Modifier and TypeMethodDescription@NotNull org.bukkit.permissions.PermissionAttachment
addAttachment
(@NotNull org.bukkit.plugin.Plugin plugin) org.bukkit.permissions.PermissionAttachment
addAttachment
(@NotNull org.bukkit.plugin.Plugin plugin, int ticks) @NotNull org.bukkit.permissions.PermissionAttachment
addAttachment
(@NotNull org.bukkit.plugin.Plugin plugin, @NotNull String name, boolean value) org.bukkit.permissions.PermissionAttachment
addAttachment
(@NotNull org.bukkit.plugin.Plugin plugin, @NotNull String name, boolean value, int ticks) boolean
addPassenger
(@NotNull org.bukkit.entity.Entity passenger) boolean
addScoreboardTag
(@NotNull String tag) @NotNull net.kyori.adventure.text.event.HoverEvent<net.kyori.adventure.text.event.HoverEvent.ShowEntity>
void
assertLocation
(@NotNull org.bukkit.Location expectedLocation, double maximumDistance) Assert that the actual location of the player is within a certain distance to a given location.void
Assert that the player hasn't teleported.void
assertTeleported
(@NotNull org.bukkit.Location expectedLocation, double maximumDistance) Assert that the player teleported to a certain location within a certain distance to a given location.void
Clears the teleported flag.@Nullable net.kyori.adventure.text.Component
void
customName
(@Nullable net.kyori.adventure.text.Component customName) boolean
eject()
final boolean
boolean
@NotNull org.bukkit.util.BoundingBox
@NotNull org.bukkit.Chunk
getChunk()
@NotNull Set<org.bukkit.permissions.PermissionAttachmentInfo>
int
@NotNull org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason
@NotNull org.bukkit.block.BlockFace
float
int
int
double
@Nullable org.bukkit.event.entity.EntityDamageEvent
@NotNull org.bukkit.Location
org.bukkit.Location
getLocation
(@Nullable org.bukkit.Location loc) int
int
@NotNull List<org.bukkit.metadata.MetadataValue>
getMetadata
(@NotNull String metadataKey) @NotNull String
getName()
@NotNull List<org.bukkit.entity.Entity>
getNearbyEntities
(double x, double y, double z) @Nullable org.bukkit.Location
org.bukkit.entity.Entity
Deprecated.@NotNull List<org.bukkit.entity.Entity>
@NotNull org.bukkit.persistence.PersistentDataContainer
@NotNull org.bukkit.block.PistonMoveReaction
int
@NotNull org.bukkit.entity.Pose
getPose()
@NotNull String
Gets the scoreboard entry for this entity.@NotNull ServerMock
@NotNull org.bukkit.entity.SpawnCategory
org.bukkit.event.player.PlayerTeleportEvent.TeleportCause
Get the cause of the last teleport.int
@NotNull Set<org.bukkit.entity.Player>
@NotNull org.bukkit.entity.EntityType
getType()
@NotNull UUID
org.bukkit.entity.Entity
@NotNull org.bukkit.util.Vector
double
getWidth()
@NotNull org.bukkit.World
getWorld()
boolean
final int
hashCode()
boolean
hasMetadata
(@NotNull String metadataKey) boolean
hasPermission
(@NotNull String name) boolean
hasPermission
(@NotNull org.bukkit.permissions.Permission perm) boolean
Checks if the player has been teleported since the last assert orclearTeleported()
.boolean
boolean
isDead()
boolean
isEmpty()
boolean
boolean
isFrozen()
boolean
boolean
boolean
isInLava()
boolean
boolean
isInRain()
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
isOp()
boolean
isPermissionSet
(@NotNull String name) boolean
isPermissionSet
(@NotNull org.bukkit.permissions.Permission perm) boolean
boolean
isSilent()
boolean
boolean
isValid()
boolean
boolean
void
lockFreezeTicks
(boolean locked) @NotNull net.kyori.adventure.text.Component
name()
@Nullable net.kyori.adventure.text.Component
Returns the next message that was sent to the target.void
playEffect
(@NotNull org.bukkit.EntityEffect type) void
void
remove()
void
removeAttachment
(@NotNull org.bukkit.permissions.PermissionAttachment attachment) void
removeMetadata
(@NotNull String metadataKey, @NotNull org.bukkit.plugin.Plugin owningPlugin) boolean
removePassenger
(@NotNull org.bukkit.entity.Entity passenger) boolean
removeScoreboardTag
(@NotNull String tag) void
sendMessage
(@NotNull String message) void
sendMessage
(@NotNull net.kyori.adventure.identity.Identity source, @NotNull net.kyori.adventure.text.Component message, @NotNull net.kyori.adventure.audience.MessageType type) void
sendMessage
(@Nullable UUID sender, @NotNull String message) void
sendMessage
(String... messages) void
sendMessage
(UUID sender, String @NotNull ... messages) void
setCustomName
(@Nullable String name) void
setCustomNameVisible
(boolean flag) void
setFallDistance
(float distance) void
setFireTicks
(int ticks) void
setFreezeTicks
(int ticks) void
setGlowing
(boolean flag) void
setGravity
(boolean gravity) void
setInvulnerable
(boolean flag) void
setLastDamageCause
(@Nullable org.bukkit.event.entity.EntityDamageEvent event) void
setLocation
(@NotNull org.bukkit.Location location) Sets the location of the entity.void
setMetadata
(@NotNull String metadataKey, @NotNull org.bukkit.metadata.MetadataValue newMetadataValue) void
Sets the name of this entity.void
setOp
(boolean isOperator) boolean
setPassenger
(@NotNull org.bukkit.entity.Entity passenger) Deprecated.void
setPersistent
(boolean persistent) void
setPortalCooldown
(int cooldown) void
setRotation
(float yaw, float pitch) void
setSilent
(boolean flag) void
setTicksLived
(int value) void
setVelocity
(@NotNull org.bukkit.util.Vector velocity) void
setVisualFire
(boolean fire) boolean
spawnAt
(@NotNull org.bukkit.Location location) boolean
spawnAt
(@NotNull org.bukkit.Location location, @NotNull org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason reason) @NotNull org.bukkit.entity.Entity.Spigot
spigot()
@NotNull net.kyori.adventure.text.Component
boolean
teleport
(@NotNull org.bukkit.entity.Entity destination) boolean
teleport
(@NotNull org.bukkit.entity.Entity destination, @NotNull org.bukkit.event.player.PlayerTeleportEvent.TeleportCause cause) boolean
teleport
(@NotNull org.bukkit.Location location) boolean
teleport
(@NotNull org.bukkit.Location location, @NotNull org.bukkit.event.player.PlayerTeleportEvent.TeleportCause cause) boolean
teleport
(@NotNull org.bukkit.Location location, @NotNull org.bukkit.event.player.PlayerTeleportEvent.TeleportCause cause, boolean ignorePassengers, boolean dismount) protected void
teleportWithoutEvent
(@NotNull org.bukkit.Location location, @NotNull org.bukkit.event.player.PlayerTeleportEvent.TeleportCause cause) Methods inherited from class org.bukkit.command.CommandSender.Spigot
sendMessage, sendMessage, sendMessage, sendMessage
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.kyori.adventure.audience.Audience
clearTitle, filterAudience, forEachAudience, hideBossBar, openBook, openBook, playSound, playSound, playSound, resetTitle, sendActionBar, sendActionBar, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendPlayerListFooter, sendPlayerListFooter, sendPlayerListHeader, sendPlayerListHeader, sendPlayerListHeaderAndFooter, sendPlayerListHeaderAndFooter, sendTitlePart, showBossBar, showTitle, stopSound, stopSound
Methods inherited from interface org.bukkit.command.CommandSender
sendMessage, sendMessage, sendPlainMessage, sendRichMessage
Methods inherited from interface org.bukkit.entity.Entity
asHoverEvent, teleport, teleport, teleport, teleportAsync, teleportAsync
Methods inherited from interface be.seeseemelk.mockbukkit.command.MessageTarget
assertNoMoreSaid, assertSaid, assertSaid, nextMessage
Methods inherited from interface org.bukkit.permissions.Permissible
permissionValue, permissionValue
Methods inherited from interface net.kyori.adventure.pointer.Pointered
get, getOrDefault, getOrDefaultFrom, pointers
-
Constructor Details
-
EntityMock
-
-
Method Details
-
hashCode
public final int hashCode() -
equals
-
assertLocation
public void assertLocation(@NotNull @NotNull org.bukkit.Location expectedLocation, double maximumDistance) Assert that the actual location of the player is within a certain distance to a given location.- Parameters:
expectedLocation
- The location the player should be at.maximumDistance
- The distance the player may maximumly be separated from the expected location.
-
assertTeleported
public void assertTeleported(@NotNull @NotNull org.bukkit.Location expectedLocation, double maximumDistance) Assert that the player teleported to a certain location within a certain distance to a given location. Also clears the teleported flag.- Parameters:
expectedLocation
- The location the player should be at.maximumDistance
- The distance the player may maximumly be separated from the expected location.
-
assertNotTeleported
public void assertNotTeleported()Assert that the player hasn't teleported. Also clears the teleported flag. -
hasTeleported
public boolean hasTeleported()Checks if the player has been teleported since the last assert orclearTeleported()
.- Returns:
true
if the player has been teleported,false
if he hasn't been teleported.
-
clearTeleported
public void clearTeleported()Clears the teleported flag. -
getTeleportCause
public org.bukkit.event.player.PlayerTeleportEvent.TeleportCause getTeleportCause()Get the cause of the last teleport.- Returns:
- The cause of the last teleport.
-
getUniqueId
- Specified by:
getUniqueId
in interfaceorg.bukkit.entity.Entity
-
getLocation
@NotNull public @NotNull org.bukkit.Location getLocation()- Specified by:
getLocation
in interfaceorg.bukkit.entity.Entity
-
getTrackedPlayers
- Specified by:
getTrackedPlayers
in interfaceorg.bukkit.entity.Entity
-
getLocation
public org.bukkit.Location getLocation(@Nullable @Nullable org.bukkit.Location loc) - Specified by:
getLocation
in interfaceorg.bukkit.entity.Entity
-
setLocation
public void setLocation(@NotNull @NotNull org.bukkit.Location location) Sets the location of the entity. Note that this will not fire a teleport event.- Parameters:
location
- The new location of the entity.
-
getWorld
@NotNull public @NotNull org.bukkit.World getWorld()- Specified by:
getWorld
in interfaceorg.bukkit.entity.Entity
-
setMetadata
public void setMetadata(@NotNull @NotNull String metadataKey, @NotNull @NotNull org.bukkit.metadata.MetadataValue newMetadataValue) - Specified by:
setMetadata
in interfaceorg.bukkit.metadata.Metadatable
-
getMetadata
@NotNull public @NotNull List<org.bukkit.metadata.MetadataValue> getMetadata(@NotNull @NotNull String metadataKey) - Specified by:
getMetadata
in interfaceorg.bukkit.metadata.Metadatable
-
hasMetadata
- Specified by:
hasMetadata
in interfaceorg.bukkit.metadata.Metadatable
-
removeMetadata
public void removeMetadata(@NotNull @NotNull String metadataKey, @NotNull @NotNull org.bukkit.plugin.Plugin owningPlugin) - Specified by:
removeMetadata
in interfaceorg.bukkit.metadata.Metadatable
-
getPersistentDataContainer
@NotNull public @NotNull org.bukkit.persistence.PersistentDataContainer getPersistentDataContainer()- Specified by:
getPersistentDataContainer
in interfaceorg.bukkit.persistence.PersistentDataHolder
-
teleport
public boolean teleport(@NotNull @NotNull org.bukkit.Location location) - Specified by:
teleport
in interfaceorg.bukkit.entity.Entity
-
teleport
public boolean teleport(@NotNull @NotNull org.bukkit.Location location, @NotNull @NotNull org.bukkit.event.player.PlayerTeleportEvent.TeleportCause cause) - Specified by:
teleport
in interfaceorg.bukkit.entity.Entity
-
teleportWithoutEvent
protected void teleportWithoutEvent(@NotNull @NotNull org.bukkit.Location location, @NotNull @NotNull org.bukkit.event.player.PlayerTeleportEvent.TeleportCause cause) -
teleport
public boolean teleport(@NotNull @NotNull org.bukkit.entity.Entity destination) - Specified by:
teleport
in interfaceorg.bukkit.entity.Entity
-
teleport
public boolean teleport(@NotNull @NotNull org.bukkit.entity.Entity destination, @NotNull @NotNull org.bukkit.event.player.PlayerTeleportEvent.TeleportCause cause) - Specified by:
teleport
in interfaceorg.bukkit.entity.Entity
-
isOp
public boolean isOp()- Specified by:
isOp
in interfaceorg.bukkit.permissions.ServerOperator
-
setOp
public void setOp(boolean isOperator) - Specified by:
setOp
in interfaceorg.bukkit.permissions.ServerOperator
-
getName
- Specified by:
getName
in interfaceorg.bukkit.command.CommandSender
-
getScoreboardEntry
Gets the scoreboard entry for this entity.- Returns:
- The scoreboard entry.
-
setName
Sets the name of this entity.- Parameters:
name
- The new name of the entity.
-
sendMessage
- Specified by:
sendMessage
in interfaceorg.bukkit.command.CommandSender
-
sendMessage
- Specified by:
sendMessage
in interfaceorg.bukkit.command.CommandSender
-
sendMessage
- Specified by:
sendMessage
in interfaceorg.bukkit.command.CommandSender
-
sendMessage
- Specified by:
sendMessage
in interfaceorg.bukkit.command.CommandSender
-
sendMessage
public void sendMessage(@NotNull @NotNull net.kyori.adventure.identity.Identity source, @NotNull @NotNull net.kyori.adventure.text.Component message, @NotNull @NotNull net.kyori.adventure.audience.MessageType type) - Specified by:
sendMessage
in interfacenet.kyori.adventure.audience.Audience
- Specified by:
sendMessage
in interfaceorg.bukkit.command.CommandSender
-
nextComponentMessage
@Nullable public @Nullable net.kyori.adventure.text.Component nextComponentMessage()Description copied from interface:MessageTarget
Returns the next message that was sent to the target.- Specified by:
nextComponentMessage
in interfaceMessageTarget
- Returns:
- The next message sent to the target.
-
isPermissionSet
- Specified by:
isPermissionSet
in interfaceorg.bukkit.permissions.Permissible
-
isPermissionSet
public boolean isPermissionSet(@NotNull @NotNull org.bukkit.permissions.Permission perm) - Specified by:
isPermissionSet
in interfaceorg.bukkit.permissions.Permissible
-
hasPermission
- Specified by:
hasPermission
in interfaceorg.bukkit.permissions.Permissible
-
hasPermission
public boolean hasPermission(@NotNull @NotNull org.bukkit.permissions.Permission perm) - Specified by:
hasPermission
in interfaceorg.bukkit.permissions.Permissible
-
addAttachment
@NotNull public @NotNull org.bukkit.permissions.PermissionAttachment addAttachment(@NotNull @NotNull org.bukkit.plugin.Plugin plugin, @NotNull @NotNull String name, boolean value) - Specified by:
addAttachment
in interfaceorg.bukkit.permissions.Permissible
-
addAttachment
@NotNull public @NotNull org.bukkit.permissions.PermissionAttachment addAttachment(@NotNull @NotNull org.bukkit.plugin.Plugin plugin) - Specified by:
addAttachment
in interfaceorg.bukkit.permissions.Permissible
-
addAttachment
public org.bukkit.permissions.PermissionAttachment addAttachment(@NotNull @NotNull org.bukkit.plugin.Plugin plugin, @NotNull @NotNull String name, boolean value, int ticks) - Specified by:
addAttachment
in interfaceorg.bukkit.permissions.Permissible
-
addAttachment
public org.bukkit.permissions.PermissionAttachment addAttachment(@NotNull @NotNull org.bukkit.plugin.Plugin plugin, int ticks) - Specified by:
addAttachment
in interfaceorg.bukkit.permissions.Permissible
-
removeAttachment
public void removeAttachment(@NotNull @NotNull org.bukkit.permissions.PermissionAttachment attachment) - Specified by:
removeAttachment
in interfaceorg.bukkit.permissions.Permissible
-
recalculatePermissions
public void recalculatePermissions()- Specified by:
recalculatePermissions
in interfaceorg.bukkit.permissions.Permissible
-
getEffectivePermissions
@NotNull public @NotNull Set<org.bukkit.permissions.PermissionAttachmentInfo> getEffectivePermissions()- Specified by:
getEffectivePermissions
in interfaceorg.bukkit.permissions.Permissible
-
customName
@Nullable public @Nullable net.kyori.adventure.text.Component customName()- Specified by:
customName
in interfaceorg.bukkit.Nameable
-
customName
public void customName(@Nullable @Nullable net.kyori.adventure.text.Component customName) - Specified by:
customName
in interfaceorg.bukkit.Nameable
-
getCustomName
- Specified by:
getCustomName
in interfaceorg.bukkit.Nameable
-
setCustomName
- Specified by:
setCustomName
in interfaceorg.bukkit.Nameable
-
setVelocity
public void setVelocity(@NotNull @NotNull org.bukkit.util.Vector velocity) - Specified by:
setVelocity
in interfaceorg.bukkit.entity.Entity
-
getVelocity
@NotNull public @NotNull org.bukkit.util.Vector getVelocity()- Specified by:
getVelocity
in interfaceorg.bukkit.entity.Entity
-
getHeight
public double getHeight()- Specified by:
getHeight
in interfaceorg.bukkit.entity.Entity
-
getWidth
public double getWidth()- Specified by:
getWidth
in interfaceorg.bukkit.entity.Entity
-
isOnGround
public boolean isOnGround()- Specified by:
isOnGround
in interfaceorg.bukkit.entity.Entity
-
getNearbyEntities
@NotNull public @NotNull List<org.bukkit.entity.Entity> getNearbyEntities(double x, double y, double z) - Specified by:
getNearbyEntities
in interfaceorg.bukkit.entity.Entity
-
getEntityId
public int getEntityId()- Specified by:
getEntityId
in interfaceorg.bukkit.entity.Entity
-
getFireTicks
public int getFireTicks()- Specified by:
getFireTicks
in interfaceorg.bukkit.entity.Entity
-
getMaxFireTicks
public int getMaxFireTicks()- Specified by:
getMaxFireTicks
in interfaceorg.bukkit.entity.Entity
-
setFireTicks
public void setFireTicks(int ticks) - Specified by:
setFireTicks
in interfaceorg.bukkit.entity.Entity
-
setVisualFire
public void setVisualFire(boolean fire) - Specified by:
setVisualFire
in interfaceorg.bukkit.entity.Entity
-
isVisualFire
public boolean isVisualFire()- Specified by:
isVisualFire
in interfaceorg.bukkit.entity.Entity
-
setFreezeTicks
public void setFreezeTicks(int ticks) - Specified by:
setFreezeTicks
in interfaceorg.bukkit.entity.Entity
-
isFrozen
public boolean isFrozen()- Specified by:
isFrozen
in interfaceorg.bukkit.entity.Entity
-
isFreezeTickingLocked
public boolean isFreezeTickingLocked()- Specified by:
isFreezeTickingLocked
in interfaceorg.bukkit.entity.Entity
-
lockFreezeTicks
public void lockFreezeTicks(boolean locked) - Specified by:
lockFreezeTicks
in interfaceorg.bukkit.entity.Entity
-
getFreezeTicks
public int getFreezeTicks()- Specified by:
getFreezeTicks
in interfaceorg.bukkit.entity.Entity
-
getMaxFreezeTicks
public int getMaxFreezeTicks()- Specified by:
getMaxFreezeTicks
in interfaceorg.bukkit.entity.Entity
-
remove
public void remove()- Specified by:
remove
in interfaceorg.bukkit.entity.Entity
-
isDead
public boolean isDead()- Specified by:
isDead
in interfaceorg.bukkit.entity.Entity
-
isValid
public boolean isValid()- Specified by:
isValid
in interfaceorg.bukkit.entity.Entity
-
getServer
- Specified by:
getServer
in interfaceorg.bukkit.command.CommandSender
- Specified by:
getServer
in interfaceorg.bukkit.entity.Entity
-
getPassenger
Deprecated.- Specified by:
getPassenger
in interfaceorg.bukkit.entity.Entity
-
setPassenger
Deprecated.- Specified by:
setPassenger
in interfaceorg.bukkit.entity.Entity
-
getPassengers
- Specified by:
getPassengers
in interfaceorg.bukkit.entity.Entity
-
addPassenger
public boolean addPassenger(@NotNull @NotNull org.bukkit.entity.Entity passenger) - Specified by:
addPassenger
in interfaceorg.bukkit.entity.Entity
-
removePassenger
public boolean removePassenger(@NotNull @NotNull org.bukkit.entity.Entity passenger) - Specified by:
removePassenger
in interfaceorg.bukkit.entity.Entity
-
isEmpty
public boolean isEmpty()- Specified by:
isEmpty
in interfaceorg.bukkit.entity.Entity
-
eject
public boolean eject()- Specified by:
eject
in interfaceorg.bukkit.entity.Entity
-
getFallDistance
public float getFallDistance()- Specified by:
getFallDistance
in interfaceorg.bukkit.entity.Entity
-
setFallDistance
public void setFallDistance(float distance) - Specified by:
setFallDistance
in interfaceorg.bukkit.entity.Entity
-
setLastDamageCause
public void setLastDamageCause(@Nullable @Nullable org.bukkit.event.entity.EntityDamageEvent event) - Specified by:
setLastDamageCause
in interfaceorg.bukkit.entity.Entity
-
getLastDamageCause
@Nullable public @Nullable org.bukkit.event.entity.EntityDamageEvent getLastDamageCause()- Specified by:
getLastDamageCause
in interfaceorg.bukkit.entity.Entity
-
getTicksLived
public int getTicksLived()- Specified by:
getTicksLived
in interfaceorg.bukkit.entity.Entity
-
setTicksLived
public void setTicksLived(int value) - Specified by:
setTicksLived
in interfaceorg.bukkit.entity.Entity
-
playEffect
public void playEffect(@NotNull @NotNull org.bukkit.EntityEffect type) - Specified by:
playEffect
in interfaceorg.bukkit.entity.Entity
-
getType
@NotNull public @NotNull org.bukkit.entity.EntityType getType()- Specified by:
getType
in interfaceorg.bukkit.entity.Entity
-
isInsideVehicle
public boolean isInsideVehicle()- Specified by:
isInsideVehicle
in interfaceorg.bukkit.entity.Entity
-
leaveVehicle
public boolean leaveVehicle()- Specified by:
leaveVehicle
in interfaceorg.bukkit.entity.Entity
-
getVehicle
public org.bukkit.entity.Entity getVehicle()- Specified by:
getVehicle
in interfaceorg.bukkit.entity.Entity
-
setCustomNameVisible
public void setCustomNameVisible(boolean flag) - Specified by:
setCustomNameVisible
in interfaceorg.bukkit.entity.Entity
-
isCustomNameVisible
public boolean isCustomNameVisible()- Specified by:
isCustomNameVisible
in interfaceorg.bukkit.entity.Entity
-
setGlowing
public void setGlowing(boolean flag) - Specified by:
setGlowing
in interfaceorg.bukkit.entity.Entity
-
isGlowing
public boolean isGlowing()- Specified by:
isGlowing
in interfaceorg.bukkit.entity.Entity
-
setInvulnerable
public void setInvulnerable(boolean flag) - Specified by:
setInvulnerable
in interfaceorg.bukkit.entity.Entity
-
isInvulnerable
public boolean isInvulnerable()- Specified by:
isInvulnerable
in interfaceorg.bukkit.entity.Entity
-
isSilent
public boolean isSilent()- Specified by:
isSilent
in interfaceorg.bukkit.entity.Entity
-
setSilent
public void setSilent(boolean flag) - Specified by:
setSilent
in interfaceorg.bukkit.entity.Entity
-
hasGravity
public boolean hasGravity()- Specified by:
hasGravity
in interfaceorg.bukkit.entity.Entity
-
setGravity
public void setGravity(boolean gravity) - Specified by:
setGravity
in interfaceorg.bukkit.entity.Entity
-
getPortalCooldown
public int getPortalCooldown()- Specified by:
getPortalCooldown
in interfaceorg.bukkit.entity.Entity
-
setPortalCooldown
public void setPortalCooldown(int cooldown) - Specified by:
setPortalCooldown
in interfaceorg.bukkit.entity.Entity
-
getScoreboardTags
- Specified by:
getScoreboardTags
in interfaceorg.bukkit.entity.Entity
-
addScoreboardTag
- Specified by:
addScoreboardTag
in interfaceorg.bukkit.entity.Entity
-
removeScoreboardTag
- Specified by:
removeScoreboardTag
in interfaceorg.bukkit.entity.Entity
-
getPistonMoveReaction
@NotNull public @NotNull org.bukkit.block.PistonMoveReaction getPistonMoveReaction()- Specified by:
getPistonMoveReaction
in interfaceorg.bukkit.entity.Entity
-
setRotation
public void setRotation(float yaw, float pitch) - Specified by:
setRotation
in interfaceorg.bukkit.entity.Entity
-
teleport
public boolean teleport(@NotNull @NotNull org.bukkit.Location location, @NotNull @NotNull org.bukkit.event.player.PlayerTeleportEvent.TeleportCause cause, boolean ignorePassengers, boolean dismount) - Specified by:
teleport
in interfaceorg.bukkit.entity.Entity
-
getBoundingBox
@NotNull public @NotNull org.bukkit.util.BoundingBox getBoundingBox()- Specified by:
getBoundingBox
in interfaceorg.bukkit.entity.Entity
-
isPersistent
public boolean isPersistent()- Specified by:
isPersistent
in interfaceorg.bukkit.entity.Entity
-
setPersistent
public void setPersistent(boolean persistent) - Specified by:
setPersistent
in interfaceorg.bukkit.entity.Entity
-
getFacing
@NotNull public @NotNull org.bukkit.block.BlockFace getFacing()- Specified by:
getFacing
in interfaceorg.bukkit.entity.Entity
-
getPose
@NotNull public @NotNull org.bukkit.entity.Pose getPose()- Specified by:
getPose
in interfaceorg.bukkit.entity.Entity
-
isInWater
public boolean isInWater()- Specified by:
isInWater
in interfaceorg.bukkit.entity.Entity
-
getSpawnCategory
@NotNull public @NotNull org.bukkit.entity.SpawnCategory getSpawnCategory()- Specified by:
getSpawnCategory
in interfaceorg.bukkit.entity.Entity
-
spigot
public @NotNull org.bukkit.entity.Entity.Spigot spigot()- Specified by:
spigot
in interfaceorg.bukkit.command.CommandSender
- Specified by:
spigot
in interfaceorg.bukkit.entity.Entity
-
name
@NotNull public @NotNull net.kyori.adventure.text.Component name()- Specified by:
name
in interfaceorg.bukkit.command.CommandSender
-
teamDisplayName
@NotNull public @NotNull net.kyori.adventure.text.Component teamDisplayName()- Specified by:
teamDisplayName
in interfaceorg.bukkit.entity.Entity
-
asHoverEvent
@NotNull public @NotNull net.kyori.adventure.text.event.HoverEvent<net.kyori.adventure.text.event.HoverEvent.ShowEntity> asHoverEvent()- Specified by:
asHoverEvent
in interfacenet.kyori.adventure.text.event.HoverEventSource<net.kyori.adventure.text.event.HoverEvent.ShowEntity>
-
getOrigin
@Nullable public @Nullable org.bukkit.Location getOrigin()- Specified by:
getOrigin
in interfaceorg.bukkit.entity.Entity
-
fromMobSpawner
public boolean fromMobSpawner()- Specified by:
fromMobSpawner
in interfaceorg.bukkit.entity.Entity
-
getChunk
@NotNull public @NotNull org.bukkit.Chunk getChunk()- Specified by:
getChunk
in interfaceorg.bukkit.entity.Entity
-
getEntitySpawnReason
public @NotNull org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason getEntitySpawnReason()- Specified by:
getEntitySpawnReason
in interfaceorg.bukkit.entity.Entity
-
isInRain
public boolean isInRain()- Specified by:
isInRain
in interfaceorg.bukkit.entity.Entity
-
isInBubbleColumn
public boolean isInBubbleColumn()- Specified by:
isInBubbleColumn
in interfaceorg.bukkit.entity.Entity
-
isInWaterOrRain
public boolean isInWaterOrRain()- Specified by:
isInWaterOrRain
in interfaceorg.bukkit.entity.Entity
-
isInWaterOrBubbleColumn
public boolean isInWaterOrBubbleColumn()- Specified by:
isInWaterOrBubbleColumn
in interfaceorg.bukkit.entity.Entity
-
isInWaterOrRainOrBubbleColumn
public boolean isInWaterOrRainOrBubbleColumn()- Specified by:
isInWaterOrRainOrBubbleColumn
in interfaceorg.bukkit.entity.Entity
-
isInLava
public boolean isInLava()- Specified by:
isInLava
in interfaceorg.bukkit.entity.Entity
-
isTicking
public boolean isTicking()- Specified by:
isTicking
in interfaceorg.bukkit.entity.Entity
-
spawnAt
public boolean spawnAt(@NotNull @NotNull org.bukkit.Location location) - Specified by:
spawnAt
in interfaceorg.bukkit.entity.Entity
-
spawnAt
public boolean spawnAt(@NotNull @NotNull org.bukkit.Location location, @NotNull org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason reason) - Specified by:
spawnAt
in interfaceorg.bukkit.entity.Entity
-
isInPowderedSnow
public boolean isInPowderedSnow()- Specified by:
isInPowderedSnow
in interfaceorg.bukkit.entity.Entity
-