Package be.seeseemelk.mockbukkit.entity
Class LootableMinecart
java.lang.Object
org.bukkit.command.CommandSender.Spigot
org.bukkit.entity.Entity.Spigot
be.seeseemelk.mockbukkit.entity.EntityMock
be.seeseemelk.mockbukkit.entity.VehicleMock
be.seeseemelk.mockbukkit.entity.MinecartMock
be.seeseemelk.mockbukkit.entity.LootableMinecart
- All Implemented Interfaces:
MessageTarget,com.destroystokyo.paper.loottable.LootableInventory,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.Minecart,org.bukkit.entity.Vehicle,org.bukkit.loot.Lootable,org.bukkit.metadata.Metadatable,org.bukkit.Nameable,org.bukkit.permissions.Permissible,org.bukkit.permissions.ServerOperator,org.bukkit.persistence.PersistentDataHolder
- Direct Known Subclasses:
HopperMinecartMock,StorageMinecartMock
public abstract class LootableMinecart
extends MinecartMock
implements com.destroystokyo.paper.loottable.LootableInventory
-
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
server -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedLootableMinecart(@NotNull ServerMock server, @NotNull UUID uuid) -
Method Summary
Modifier and TypeMethodDescriptionlong@Nullable LonggetLastLooted(@NotNull UUID player) @Nullable org.bukkit.loot.LootTablelonglonggetSeed()booleanbooleanbooleanhasPlayerLooted(@NotNull UUID player) booleanbooleansetHasPlayerLooted(@NotNull UUID player, boolean looted) voidsetLootTable(@Nullable org.bukkit.loot.LootTable table) longsetNextRefill(long refillAt) voidsetRefillEnabled(boolean refillEnabled) voidsetSeed(long seed) Methods inherited from class be.seeseemelk.mockbukkit.entity.MinecartMock
getDamage, getDerailedVelocityMod, getDisplayBlock, getDisplayBlockData, getDisplayBlockOffset, getFlyingVelocityMod, getMaxSpeed, isSlowWhenEmpty, setDamage, setDerailedVelocityMod, setDisplayBlock, setDisplayBlockData, setDisplayBlockOffset, setFlyingVelocityMod, setMaxSpeed, setSlowWhenEmptyMethods inherited from class be.seeseemelk.mockbukkit.entity.VehicleMock
toStringMethods 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, 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, removeAttachment, removeMetadata, removePassenger, removeScoreboardTag, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, setCustomName, setCustomNameVisible, setFallDistance, setFireTicks, setFreezeTicks, setGlowing, setGravity, setInvisible, setInvulnerable, setLastDamageCause, setLocation, setMetadata, setName, setNoPhysics, setOp, setPassenger, setPersistent, setPortalCooldown, setPose, setRotation, setSilent, setSneaking, setSpawnReason, setTicksLived, setVelocity, setVisibleByDefault, setVisualFire, spawnAt, spawnAt, spigot, teamDisplayName, teleport, teleport, teleport, teleport, teleport, teleportAsync, teleportWithoutEvent, wouldCollideUsingMethods inherited from class org.bukkit.command.CommandSender.Spigot
sendMessage, sendMessage, sendMessage, sendMessageMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, 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, getType, getUniqueId, getVehicle, 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, 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 org.bukkit.loot.Lootable
clearLootTable, hasLootTable, setLootTableMethods inherited from interface com.destroystokyo.paper.loottable.LootableInventory
canPlayerLoot, getLastLooted, hasPlayerLooted, setHasPlayerLootedMethods 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.entity.Minecart
getMinecartMaterialMethods 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, setOpMethods inherited from interface org.bukkit.entity.Vehicle
getVelocity, setVelocity
-
Constructor Details
-
LootableMinecart
- Parameters:
server- The server to create the entity on.uuid- The UUID of the entity.
-
-
Method Details
-
isRefillEnabled
public boolean isRefillEnabled()- Specified by:
isRefillEnabledin interfacecom.destroystokyo.paper.loottable.LootableInventory
-
setRefillEnabled
public void setRefillEnabled(boolean refillEnabled) -
hasBeenFilled
public boolean hasBeenFilled()- Specified by:
hasBeenFilledin interfacecom.destroystokyo.paper.loottable.LootableInventory
-
hasPlayerLooted
- Specified by:
hasPlayerLootedin interfacecom.destroystokyo.paper.loottable.LootableInventory
-
getLastLooted
- Specified by:
getLastLootedin interfacecom.destroystokyo.paper.loottable.LootableInventory
-
setHasPlayerLooted
- Specified by:
setHasPlayerLootedin interfacecom.destroystokyo.paper.loottable.LootableInventory
-
hasPendingRefill
public boolean hasPendingRefill()- Specified by:
hasPendingRefillin interfacecom.destroystokyo.paper.loottable.LootableInventory
-
getLastFilled
public long getLastFilled()- Specified by:
getLastFilledin interfacecom.destroystokyo.paper.loottable.LootableInventory
-
getNextRefill
public long getNextRefill()- Specified by:
getNextRefillin interfacecom.destroystokyo.paper.loottable.LootableInventory
-
setNextRefill
public long setNextRefill(long refillAt) - Specified by:
setNextRefillin interfacecom.destroystokyo.paper.loottable.LootableInventory
-
setLootTable
public void setLootTable(@Nullable @Nullable org.bukkit.loot.LootTable table) - Specified by:
setLootTablein interfaceorg.bukkit.loot.Lootable
-
getLootTable
@Nullable public @Nullable org.bukkit.loot.LootTable getLootTable()- Specified by:
getLootTablein interfaceorg.bukkit.loot.Lootable
-
setSeed
public void setSeed(long seed) - Specified by:
setSeedin interfaceorg.bukkit.loot.Lootable
-
getSeed
public long getSeed()- Specified by:
getSeedin interfaceorg.bukkit.loot.Lootable
-