Package be.seeseemelk.mockbukkit.entity
Class FireworkMock
- 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>
,CommandSender
,Entity
,Firework
,Projectile
,Metadatable
,Nameable
,Permissible
,ServerOperator
,PersistentDataHolder
Mock implementation of a
Firework
.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.bukkit.entity.Entity
Entity.Spigot
-
Field Summary
Fields inherited from class be.seeseemelk.mockbukkit.entity.EntityMock
server
-
Constructor Summary
ConstructorDescriptionFireworkMock
(@NotNull ServerMock server, @NotNull UUID uuid) FireworkMock
(@NotNull ServerMock server, @NotNull UUID uuid, @NotNull FireworkMeta meta) -
Method Summary
Modifier and TypeMethodDescriptionvoid
detonate()
@Nullable LivingEntity
@Nullable LivingEntity
@NotNull FireworkMeta
@NotNull ItemStack
getItem()
int
getLife()
Deprecated, for removal: This API element is subject to removal in a future version.int
Deprecated, for removal: This API element is subject to removal in a future version.@Nullable UUID
int
int
@NotNull EntityType
getType()
boolean
boolean
boolean
setAttachedTo
(@Nullable LivingEntity entity) void
setFireworkMeta
(@NotNull FireworkMeta meta) void
boolean
setLife
(int ticks) Deprecated, for removal: This API element is subject to removal in a future version.boolean
setMaxLife
(int ticks) Deprecated, for removal: This API element is subject to removal in a future version.void
setShotAtAngle
(boolean shotAtAngle) void
setTicksFlown
(int ticks) void
setTicksToDetonate
(int ticks) Methods inherited from class be.seeseemelk.mockbukkit.entity.ProjectileMock
canHitEntity, getOwnerUniqueId, getShooter, hasBeenShot, hasLeftShooter, hitEntity, hitEntity, setHasBeenShot, setHasLeftShooter, setShooter
Methods inherited from class be.seeseemelk.mockbukkit.entity.AbstractProjectileMock
doesBounce, setBounce
Methods inherited from class be.seeseemelk.mockbukkit.entity.EntityMock
addAttachment, addAttachment, addAttachment, addAttachment, addPassenger, addScoreboardTag, asHoverEvent, assertLocation, assertNotTeleported, assertTeleported, clearMetadata, clearTeleported, collidesAt, customName, customName, eject, equals, fromMobSpawner, getBoundingBox, getChunk, getCustomName, getEffectivePermissions, getEntityId, getEntitySpawnReason, getEntityState, getFacing, getFallDistance, getFireTicks, getFreezeTicks, 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, getUniqueId, getVehicle, getVelocity, getWidth, getWorld, getX, getY, getYaw, getZ, hasFixedPose, hasGravity, hashCode, hasMetadata, hasPassengers, hasPermission, hasPermission, hasTeleported, isCustomNameVisible, isDead, isEmpty, isFreezeTickingLocked, isFrozen, isGlowing, isInBubbleColumn, isInLava, isInPowderedSnow, isInRain, isInsideVehicle, isInvulnerable, isInWater, isInWaterOrBubbleColumn, isInWaterOrRain, isInWaterOrRainOrBubbleColumn, isOnGround, isOp, isPermissionSet, isPermissionSet, isPersistent, isSilent, isSneaking, isTicking, isUnderWater, isValid, isVisibleByDefault, isVisualFire, leaveVehicle, lockFreezeTicks, name, nextComponentMessage, playEffect, recalculatePermissions, remove, removeAttachment, removeMetadata, removePassenger, removeScoreboardTag, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, setCustomName, setCustomNameVisible, setFallDistance, setFireTicks, setFreezeTicks, setGlowing, setGravity, setInvulnerable, setLastDamageCause, setLocation, setMetadata, setName, setOp, setPassenger, setPersistent, setPortalCooldown, setPose, setRotation, setSilent, setSneaking, setTicksLived, setVelocity, setVisibleByDefault, setVisualFire, spawnAt, spawnAt, spigot, teamDisplayName, teleport, teleport, teleport, teleport, teleport, teleportWithoutEvent, wouldCollideUsing
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, deleteMessage, deleteMessage, filterAudience, forEachAudience, hideBossBar, openBook, openBook, playSound, playSound, playSound, resetTitle, sendActionBar, sendActionBar, sendMessage, sendMessage, sendMessage, 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
getName, name, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendPlainMessage, sendRichMessage, sendRichMessage
Methods inherited from interface org.bukkit.entity.Entity
addPassenger, addScoreboardTag, asHoverEvent, collidesAt, eject, fromMobSpawner, 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, getUniqueId, getVehicle, getVelocity, getWidth, getWorld, getX, getY, getYaw, getZ, hasFixedPose, hasGravity, isCustomNameVisible, isDead, isEmpty, isFreezeTickingLocked, isFrozen, isGlowing, isInBubbleColumn, isInLava, isInPowderedSnow, isInRain, isInsideVehicle, isInvulnerable, isInWater, isInWaterOrBubbleColumn, isInWaterOrRain, isInWaterOrRainOrBubbleColumn, isOnGround, isPersistent, isSilent, isSneaking, isTicking, isUnderWater, isValid, isVisibleByDefault, isVisualFire, leaveVehicle, lockFreezeTicks, playEffect, remove, removePassenger, removeScoreboardTag, setCustomNameVisible, setFallDistance, setFireTicks, setFreezeTicks, setGlowing, setGravity, setInvulnerable, setLastDamageCause, setPassenger, setPersistent, setPortalCooldown, setPose, setPose, setRotation, setSilent, setSneaking, setTicksLived, setVelocity, setVisibleByDefault, setVisualFire, spawnAt, spawnAt, spigot, teamDisplayName, teleport, teleport, teleport, teleport, teleport, teleport, teleportAsync, teleportAsync, wouldCollideUsing
Methods inherited from interface net.kyori.adventure.text.event.HoverEventSource
asHoverEvent
Methods inherited from interface be.seeseemelk.mockbukkit.command.MessageTarget
assertNoMoreSaid, assertSaid, assertSaid, nextMessage
Methods inherited from interface org.bukkit.metadata.Metadatable
getMetadata, hasMetadata, removeMetadata, setMetadata
Methods inherited from interface org.bukkit.Nameable
customName, customName, getCustomName, setCustomName
Methods inherited from interface org.bukkit.permissions.Permissible
addAttachment, addAttachment, addAttachment, addAttachment, getEffectivePermissions, hasPermission, hasPermission, isPermissionSet, isPermissionSet, permissionValue, permissionValue, recalculatePermissions, removeAttachment
Methods inherited from interface org.bukkit.persistence.PersistentDataHolder
getPersistentDataContainer
Methods inherited from interface net.kyori.adventure.pointer.Pointered
get, getOrDefault, getOrDefaultFrom, pointers
Methods inherited from interface org.bukkit.entity.Projectile
canHitEntity, doesBounce, getOwnerUniqueId, getShooter, hasBeenShot, hasLeftShooter, hitEntity, hitEntity, setBounce, setHasBeenShot, setHasLeftShooter, setShooter
Methods inherited from interface org.bukkit.permissions.ServerOperator
isOp, setOp
-
Constructor Details
-
FireworkMock
- Parameters:
server
- The server to create the entity on.uuid
- The UUID of the entity.
-
FireworkMock
public FireworkMock(@NotNull @NotNull ServerMock server, @NotNull @NotNull UUID uuid, @NotNull @NotNull FireworkMeta meta) - Parameters:
server
- The server to create the entity on.uuid
- The UUID of the entity.meta
- The FireworkMeta to apply.
-
-
Method Details
-
getType
- Specified by:
getType
in interfaceEntity
- Overrides:
getType
in classEntityMock
-
getFireworkMeta
- Specified by:
getFireworkMeta
in interfaceFirework
-
setFireworkMeta
- Specified by:
setFireworkMeta
in interfaceFirework
-
setAttachedTo
- Specified by:
setAttachedTo
in interfaceFirework
-
getAttachedTo
- Specified by:
getAttachedTo
in interfaceFirework
-
setLife
Deprecated, for removal: This API element is subject to removal in a future version. -
getLife
Deprecated, for removal: This API element is subject to removal in a future version. -
setMaxLife
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
setMaxLife
in interfaceFirework
-
getMaxLife
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getMaxLife
in interfaceFirework
-
detonate
public void detonate() -
isDetonated
public boolean isDetonated()- Specified by:
isDetonated
in interfaceFirework
-
isShotAtAngle
public boolean isShotAtAngle()- Specified by:
isShotAtAngle
in interfaceFirework
-
setShotAtAngle
public void setShotAtAngle(boolean shotAtAngle) - Specified by:
setShotAtAngle
in interfaceFirework
-
getSpawningEntity
- Specified by:
getSpawningEntity
in interfaceFirework
-
getBoostedEntity
- Specified by:
getBoostedEntity
in interfaceFirework
-
getItem
-
setItem
-
getTicksFlown
public int getTicksFlown()- Specified by:
getTicksFlown
in interfaceFirework
-
setTicksFlown
public void setTicksFlown(int ticks) - Specified by:
setTicksFlown
in interfaceFirework
-
getTicksToDetonate
public int getTicksToDetonate()- Specified by:
getTicksToDetonate
in interfaceFirework
-
setTicksToDetonate
public void setTicksToDetonate(int ticks) - Specified by:
setTicksToDetonate
in interfaceFirework
-