Package be.seeseemelk.mockbukkit.entity
Class DisplayMock
java.lang.Object
org.bukkit.command.CommandSender.Spigot
org.bukkit.entity.Entity.Spigot
be.seeseemelk.mockbukkit.entity.EntityMock
be.seeseemelk.mockbukkit.entity.DisplayMock
- All Implemented Interfaces:
MessageTarget,PersistentDataViewHolder,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>,CommandSender,Display,Entity,Metadatable,Nameable,Permissible,ServerOperator,PersistentDataHolder
- Direct Known Subclasses:
BlockDisplayMock,ItemDisplayMock
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.bukkit.entity.Display
Display.Billboard, Display.BrightnessNested classes/interfaces inherited from interface org.bukkit.entity.Entity
Entity.Spigot -
Field Summary
Fields inherited from class be.seeseemelk.mockbukkit.entity.EntityMock
entityData, perms, server -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDisplayMock(@NotNull ServerMock server, @NotNull UUID uuid) Constructs a new EntityMock on the providedServerMockwith a specifiedUUID. -
Method Summary
Modifier and TypeMethodDescription@NotNull Display.Billboard@Nullable Display.Brightnessfloatfloat@Nullable Colorintintfloatfloatint@NotNull TransformationfloatvoidsetBillboard(@NotNull Display.Billboard billboard) voidsetBrightness(@Nullable Display.Brightness brightness) voidsetDisplayHeight(float height) voidsetDisplayWidth(float width) voidsetGlowColorOverride(@Nullable Color color) voidsetInterpolationDelay(int ticks) voidsetInterpolationDuration(int duration) voidsetShadowRadius(float radius) voidsetShadowStrength(float strength) voidsetTeleportDuration(int duration) voidsetTransformation(@NotNull Transformation transformation) voidsetTransformationMatrix(@NotNull org.joml.Matrix4f transformationMatrix) voidsetViewRange(float range) Methods inherited from class be.seeseemelk.mockbukkit.entity.EntityMock
addAttachment, addAttachment, addAttachment, addAttachment, addPassenger, addScoreboardTag, asHoverEvent, assertLocation, assertNotTeleported, assertTeleported, broadcastHurtAnimation, clearMetadata, clearTeleported, collidesAt, copy, copy, createSnapshot, customName, customName, eject, equals, fromMobSpawner, getAsString, getBoundingBox, getChunk, getCustomName, getEffectivePermissions, getEntityId, getEntityProperty, getEntitySpawnReason, getEntityState, getFacing, getFallDistance, getFireTicks, getFreezeTicks, getHeight, getHeight, getLastDamageCause, getLocation, getLocation, getMaxFireTicks, getMaxFreezeTicks, getMetadata, getName, getNearbyEntities, getOrigin, getPassenger, getPassengers, getPersistentDataContainer, getPistonMoveReaction, getPitch, getPortalCooldown, getPose, getScheduler, getScoreboardEntry, getScoreboardEntryName, getScoreboardTags, getServer, getSpawnCategory, getSubType, getSwimHighSpeedSplashSound, getSwimSound, getSwimSplashSound, getTeleportCause, getTicksLived, getTrackedBy, getTrackedPlayers, getTransitivePassengers, getType, getUniqueId, getVehicle, getVelocity, getWidth, getWorld, getX, getY, getYaw, getZ, hasFixedPose, hasGravity, hashCode, hasMetadata, hasNoPhysics, hasPassengers, hasPermission, hasPermission, hasTeleported, isCustomNameVisible, isDead, isEmpty, isFreezeTickingLocked, isFrozen, isGlowing, isInBubbleColumn, isInLava, isInPowderedSnow, isInRain, isInsideVehicle, isInvisible, isInvulnerable, isInWater, isInWaterOrBubbleColumn, isInWaterOrRain, isInWaterOrRainOrBubbleColumn, isInWorld, isOnGround, isOp, isPermissionSet, isPermissionSet, isPersistent, isSilent, isSneaking, isTicking, isUnderWater, isValid, isVisibleByDefault, isVisualFire, leaveVehicle, lockFreezeTicks, name, nextComponentMessage, playEffect, recalculatePermissions, remove, remove, removeAttachment, removeMetadata, removePassenger, removeScoreboardTag, sendMessage, sendMessage, sendMessage, sendMessage, setCustomName, setCustomNameVisible, setFallDistance, setFireTicks, setFreezeTicks, setGlowing, setGravity, setInvisible, setInvulnerable, setInWater, setLastDamageCause, setLocation, setMetadata, setName, setNoPhysics, setOnGround, setOp, setPassenger, setPersistent, setPortalCooldown, setPose, setRotation, setSilent, setSneaking, setSpawnReason, setTicksLived, setVelocity, setVisibleByDefault, setVisualFire, spawnAt, spawnAt, spigot, teamDisplayName, teleport, teleport, teleport, teleport, teleport, teleportAsync, teleportWithoutEvent, tick, wouldCollideUsingMethods inherited from class org.bukkit.command.CommandSender.Spigot
sendMessage, sendMessage, sendMessage, sendMessageMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.kyori.adventure.audience.Audience
clearResourcePacks, clearTitle, deleteMessage, deleteMessage, filterAudience, forEachAudience, hideBossBar, openBook, openBook, playSound, playSound, playSound, removeResourcePacks, removeResourcePacks, removeResourcePacks, removeResourcePacks, removeResourcePacks, resetTitle, sendActionBar, sendActionBar, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendPlayerListFooter, sendPlayerListFooter, sendPlayerListHeader, sendPlayerListHeader, sendPlayerListHeaderAndFooter, sendPlayerListHeaderAndFooter, sendResourcePacks, sendResourcePacks, sendResourcePacks, sendTitlePart, showBossBar, showTitle, stopSound, stopSoundMethods inherited from interface org.bukkit.command.CommandSender
getName, name, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendPlainMessage, sendRichMessage, sendRichMessageMethods inherited from interface org.bukkit.entity.Entity
addPassenger, addScoreboardTag, asHoverEvent, broadcastHurtAnimation, collidesAt, copy, copy, createSnapshot, eject, fromMobSpawner, getAsString, getBoundingBox, getChunk, getEntityId, getEntitySpawnReason, getFacing, getFallDistance, getFireTicks, getFreezeTicks, getHeight, getLastDamageCause, getLocation, getLocation, getMaxFireTicks, getMaxFreezeTicks, getNearbyEntities, getOrigin, getPassenger, getPassengers, getPistonMoveReaction, getPitch, getPortalCooldown, getPose, getScheduler, getScoreboardEntryName, getScoreboardTags, getServer, getSpawnCategory, getSwimHighSpeedSplashSound, getSwimSound, getSwimSplashSound, getTicksLived, getTrackedBy, getTrackedPlayers, getType, getUniqueId, getVehicle, getVelocity, getWidth, getWorld, getX, getY, getYaw, getZ, hasFixedPose, hasGravity, hasNoPhysics, isCustomNameVisible, isDead, isEmpty, isFreezeTickingLocked, isFrozen, isGlowing, isInBubbleColumn, isInLava, isInPowderedSnow, isInRain, isInsideVehicle, isInvisible, isInvulnerable, isInWater, isInWaterOrBubbleColumn, isInWaterOrRain, isInWaterOrRainOrBubbleColumn, isInWorld, isOnGround, isPersistent, isSilent, isSneaking, isTicking, isUnderWater, isValid, isVisibleByDefault, isVisualFire, leaveVehicle, lockFreezeTicks, playEffect, remove, removePassenger, removeScoreboardTag, setCustomNameVisible, setFallDistance, setFireTicks, setFreezeTicks, setGlowing, setGravity, setInvisible, setInvulnerable, setLastDamageCause, setNoPhysics, setPassenger, setPersistent, setPortalCooldown, setPose, setPose, setRotation, setSilent, setSneaking, setTicksLived, setVelocity, setVisibleByDefault, setVisualFire, spawnAt, spawnAt, spigot, teamDisplayName, teleport, teleport, teleport, teleport, teleport, teleport, teleportAsync, teleportAsync, teleportAsync, wouldCollideUsingMethods inherited from interface net.kyori.adventure.text.event.HoverEventSource
asHoverEventMethods inherited from interface be.seeseemelk.mockbukkit.command.MessageTarget
assertNoMoreSaid, assertSaid, assertSaid, nextMessageMethods inherited from interface org.bukkit.metadata.Metadatable
getMetadata, hasMetadata, removeMetadata, setMetadataMethods inherited from interface org.bukkit.Nameable
customName, customName, getCustomName, setCustomNameMethods inherited from interface org.bukkit.permissions.Permissible
addAttachment, addAttachment, addAttachment, addAttachment, getEffectivePermissions, hasPermission, hasPermission, isPermissionSet, isPermissionSet, permissionValue, permissionValue, recalculatePermissions, removeAttachmentMethods inherited from interface org.bukkit.persistence.PersistentDataHolder
getPersistentDataContainerMethods inherited from interface net.kyori.adventure.pointer.Pointered
get, getOrDefault, getOrDefaultFrom, pointersMethods inherited from interface org.bukkit.permissions.ServerOperator
isOp, setOp
-
Constructor Details
-
DisplayMock
Constructs a new EntityMock on the providedServerMockwith a specifiedUUID.- Parameters:
server- The server to create the entity on.uuid- The UUID of the entity.
-
-
Method Details
-
getTransformation
- Specified by:
getTransformationin interfaceDisplay
-
setTransformation
- Specified by:
setTransformationin interfaceDisplay
-
setTransformationMatrix
public void setTransformationMatrix(@NotNull @NotNull org.joml.Matrix4f transformationMatrix) - Specified by:
setTransformationMatrixin interfaceDisplay
-
getInterpolationDuration
public int getInterpolationDuration()- Specified by:
getInterpolationDurationin interfaceDisplay
-
setInterpolationDuration
public void setInterpolationDuration(int duration) - Specified by:
setInterpolationDurationin interfaceDisplay
-
getTeleportDuration
public int getTeleportDuration()- Specified by:
getTeleportDurationin interfaceDisplay
-
setTeleportDuration
public void setTeleportDuration(int duration) - Specified by:
setTeleportDurationin interfaceDisplay
-
getViewRange
public float getViewRange()- Specified by:
getViewRangein interfaceDisplay
-
setViewRange
public void setViewRange(float range) - Specified by:
setViewRangein interfaceDisplay
-
getShadowRadius
public float getShadowRadius()- Specified by:
getShadowRadiusin interfaceDisplay
-
setShadowRadius
public void setShadowRadius(float radius) - Specified by:
setShadowRadiusin interfaceDisplay
-
getShadowStrength
public float getShadowStrength()- Specified by:
getShadowStrengthin interfaceDisplay
-
setShadowStrength
public void setShadowStrength(float strength) - Specified by:
setShadowStrengthin interfaceDisplay
-
getDisplayWidth
public float getDisplayWidth()- Specified by:
getDisplayWidthin interfaceDisplay
-
setDisplayWidth
public void setDisplayWidth(float width) - Specified by:
setDisplayWidthin interfaceDisplay
-
getDisplayHeight
public float getDisplayHeight()- Specified by:
getDisplayHeightin interfaceDisplay
-
setDisplayHeight
public void setDisplayHeight(float height) - Specified by:
setDisplayHeightin interfaceDisplay
-
getInterpolationDelay
public int getInterpolationDelay()- Specified by:
getInterpolationDelayin interfaceDisplay
-
setInterpolationDelay
public void setInterpolationDelay(int ticks) - Specified by:
setInterpolationDelayin interfaceDisplay
-
getBillboard
- Specified by:
getBillboardin interfaceDisplay
-
setBillboard
- Specified by:
setBillboardin interfaceDisplay
-
getGlowColorOverride
- Specified by:
getGlowColorOverridein interfaceDisplay
-
setGlowColorOverride
- Specified by:
setGlowColorOverridein interfaceDisplay
-
getBrightness
- Specified by:
getBrightnessin interfaceDisplay
-
setBrightness
- Specified by:
setBrightnessin interfaceDisplay
-