Package be.seeseemelk.mockbukkit.entity
Class FallingBlockMock
java.lang.Object
org.bukkit.command.CommandSender.Spigot
org.bukkit.entity.Entity.Spigot
be.seeseemelk.mockbukkit.entity.EntityMock
be.seeseemelk.mockbukkit.entity.FallingBlockMock
- All Implemented Interfaces:
MessageTarget,io.papermc.paper.persistence.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>,org.bukkit.command.CommandSender,org.bukkit.entity.Entity,org.bukkit.entity.FallingBlock,org.bukkit.metadata.Metadatable,org.bukkit.Nameable,org.bukkit.permissions.Permissible,org.bukkit.permissions.ServerOperator,org.bukkit.persistence.PersistentDataHolder
Mock implementation of an
FallingBlock.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.bukkit.entity.Entity
org.bukkit.entity.Entity.Spigot -
Field Summary
Fields inherited from class be.seeseemelk.mockbukkit.entity.EntityMock
perms, server -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanboolean@NotNull org.bukkit.block.data.BlockData@NotNull org.bukkit.block.BlockStatebooleanfloatboolean@NotNull org.bukkit.Materialint@NotNull org.bukkit.entity.EntityTypegetType()voidsetBlockData(@NotNull org.bukkit.block.data.BlockData blockData) voidsetBlockState(@NotNull org.bukkit.block.BlockState blockState) voidsetCancelDrop(boolean cancelDrop) voidsetDamagePerBlock(float damage) voidsetDropItem(boolean dropItem) voidsetHurtEntities(boolean canHurtEntities) voidsetMaxDamage(int damage) voidshouldAutoExpire(boolean autoExpire) Methods inherited from class be.seeseemelk.mockbukkit.entity.EntityMock
addAttachment, addAttachment, addAttachment, addAttachment, addPassenger, addScoreboardTag, asHoverEvent, assertLocation, assertNotTeleported, assertTeleported, 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, 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, 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, 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, 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 org.bukkit.entity.FallingBlock
getSourceLocMethods 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
-
FallingBlockMock
- Parameters:
server- The server to create the entity on.uuid- The UUID of the entity.
-
-
Method Details
-
getMaterial
@NotNull public @NotNull org.bukkit.Material getMaterial()- Specified by:
getMaterialin interfaceorg.bukkit.entity.FallingBlock
-
getBlockData
@NotNull public @NotNull org.bukkit.block.data.BlockData getBlockData()- Specified by:
getBlockDatain interfaceorg.bukkit.entity.FallingBlock
-
setBlockData
public void setBlockData(@NotNull @NotNull org.bukkit.block.data.BlockData blockData) - Specified by:
setBlockDatain interfaceorg.bukkit.entity.FallingBlock
-
getBlockState
@NotNull public @NotNull org.bukkit.block.BlockState getBlockState()- Specified by:
getBlockStatein interfaceorg.bukkit.entity.FallingBlock
-
setBlockState
public void setBlockState(@NotNull @NotNull org.bukkit.block.BlockState blockState) - Specified by:
setBlockStatein interfaceorg.bukkit.entity.FallingBlock
-
getDropItem
public boolean getDropItem()- Specified by:
getDropItemin interfaceorg.bukkit.entity.FallingBlock
-
setDropItem
public void setDropItem(boolean dropItem) - Specified by:
setDropItemin interfaceorg.bukkit.entity.FallingBlock
-
getCancelDrop
public boolean getCancelDrop()- Specified by:
getCancelDropin interfaceorg.bukkit.entity.FallingBlock
-
setCancelDrop
public void setCancelDrop(boolean cancelDrop) - Specified by:
setCancelDropin interfaceorg.bukkit.entity.FallingBlock
-
canHurtEntities
public boolean canHurtEntities()- Specified by:
canHurtEntitiesin interfaceorg.bukkit.entity.FallingBlock
-
setHurtEntities
public void setHurtEntities(boolean canHurtEntities) - Specified by:
setHurtEntitiesin interfaceorg.bukkit.entity.FallingBlock
-
getDamagePerBlock
public float getDamagePerBlock()- Specified by:
getDamagePerBlockin interfaceorg.bukkit.entity.FallingBlock
-
setDamagePerBlock
public void setDamagePerBlock(float damage) - Specified by:
setDamagePerBlockin interfaceorg.bukkit.entity.FallingBlock
-
getMaxDamage
public int getMaxDamage()- Specified by:
getMaxDamagein interfaceorg.bukkit.entity.FallingBlock
-
setMaxDamage
public void setMaxDamage(int damage) - Specified by:
setMaxDamagein interfaceorg.bukkit.entity.FallingBlock
-
doesAutoExpire
public boolean doesAutoExpire()- Specified by:
doesAutoExpirein interfaceorg.bukkit.entity.FallingBlock
-
shouldAutoExpire
public void shouldAutoExpire(boolean autoExpire) - Specified by:
shouldAutoExpirein interfaceorg.bukkit.entity.FallingBlock
-
getType
@NotNull public @NotNull org.bukkit.entity.EntityType getType()- Specified by:
getTypein interfaceorg.bukkit.entity.Entity- Overrides:
getTypein classEntityMock
-