Package net.glowstone.entity.objects
Class GlowMinecart.Storage
java.lang.Object
net.glowstone.entity.GlowEntity
net.glowstone.entity.GlowVehicle
net.glowstone.entity.objects.GlowMinecart
net.glowstone.entity.objects.GlowMinecart.Storage
- All Implemented Interfaces:
com.destroystokyo.paper.loottable.LootableEntityInventory
,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.minecart.StorageMinecart
,org.bukkit.entity.Vehicle
,org.bukkit.inventory.InventoryHolder
,org.bukkit.loot.Lootable
,org.bukkit.metadata.Metadatable
,org.bukkit.Nameable
,org.bukkit.permissions.Permissible
,org.bukkit.permissions.ServerOperator
,org.bukkit.persistence.PersistentDataHolder
- Enclosing class:
- GlowMinecart
public static class GlowMinecart.Storage
extends GlowMinecart
implements org.bukkit.entity.minecart.StorageMinecart
-
Nested Class Summary
Nested classes/interfaces inherited from class net.glowstone.entity.objects.GlowMinecart
GlowMinecart.Command, GlowMinecart.Explosive, GlowMinecart.Hopper, GlowMinecart.MinecartType, GlowMinecart.Powered, GlowMinecart.Rideable, GlowMinecart.Spawner, GlowMinecart.Storage
Nested classes/interfaces inherited from interface org.bukkit.entity.Entity
org.bukkit.entity.Entity.Spigot
-
Field Summary
Fields inherited from class net.glowstone.entity.GlowEntity
active, airDrag, applyDragBeforeAccel, boundingBox, ENTITY_ID_NOBODY, entityId, gravityAccel, liquidDrag, location, metadata, passengerChanged, previousLocation, removed, server, slipMultiplier, teleported, ticksLived, vehicle, velocity, velocityChanged, world, worldLock
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
entityInteract
(GlowPlayer player, InteractEntityMessage message) @NotNull org.bukkit.entity.Entity
org.bukkit.inventory.Inventory
long
@Nullable Long
getLastLooted
(@NotNull UUID player) @Nullable org.bukkit.loot.LootTable
long
long
getSeed()
boolean
boolean
boolean
hasPlayerLooted
(@NotNull UUID player) boolean
boolean
setHasPlayerLooted
(@NotNull UUID player, boolean looted) void
setLootTable
(@Nullable org.bukkit.loot.LootTable table) long
setNextRefill
(long refillAt) void
setSeed
(long seed) Methods inherited from class net.glowstone.entity.objects.GlowMinecart
create, createSpawnMessage, getDamage, getDerailedVelocityMod, getDisplayBlock, getDisplayBlockData, getDisplayBlockOffset, getFlyingVelocityMod, getMaxSpeed, getMinecartMaterial, getMinecartType, isSlowWhenEmpty, setDamage, setDerailedVelocityMod, setDisplayBlock, setDisplayBlockData, setDisplayBlockOffset, setFlyingVelocityMod, setMaxSpeed, setSlowWhenEmpty
Methods inherited from class net.glowstone.entity.GlowEntity
addAttachment, addAttachment, addAttachment, addAttachment, addPassenger, addScoreboardTag, collide, createAfterSpawnMessage, createUpdateMessage, customName, customName, damage, damage, damage, damage, eject, equals, fromMobSpawner, getBoundingBox, getCardinalFacing, getChunk, getCustomName, getCustomTags, getDismountLocation, getEffectivePermissions, getEntityId, getEntitySpawnReason, getFacing, getFallDistance, getFireTicks, getFreezeTicks, getGravityAccel, getHeight, getLastDamageCause, getLeashedEntities, getLeashHolder, getLocation, getLocation, getMaxFireTicks, getMaxFreezeTicks, getMetadata, getMetadata, getMountLocation, getName, getNearbyEntities, getOrigin, getPassenger, getPassengers, getPersistentDataContainer, getPistonMoveReaction, getPortalCooldown, getPose, getScoreboardTags, getServer, getSpawnCategory, getTicksLived, getTrackedPlayers, getType, getUniqueId, getVehicle, getVelocity, getWidth, getWorld, hasDefaultLandingBehavior, hasFriction, hasGravity, hashCode, hasMetadata, hasMoved, hasPermission, hasPermission, hasRotated, intersects, isCustomNameVisible, isDead, isEmpty, isFreezeTickingLocked, isFrozen, isGlowing, isInBubbleColumn, isInLava, isInMaterial, isInPowderedSnow, isInRain, isInsideVehicle, isInvulnerable, isInWater, isInWaterOrBubbleColumn, isInWaterOrRain, isInWaterOrRainOrBubbleColumn, isLeashed, isOnGround, isOp, isPermissionSet, isPermissionSet, isPersistent, isRemoved, isSilent, isTeleported, isTicking, isTouchingMaterial, isValid, isVisualFire, isWithinDistance, isWithinDistance, leaveVehicle, lockFreezeTicks, name, playEffect, playEffectKnownAndSelf, pulse, pulsePhysics, recalculatePermissions, remove, removeAttachment, removeMetadata, removePassenger, removeScoreboardTag, reset, sendMessage, sendMessage, sendMessage, sendMessage, setAirDrag, setApplyDragBeforeAccel, setBoundingBox, setCustomName, setCustomNameVisible, setFallDistance, setFireTicks, setFreezeTicks, setFriction, setGlowing, setGravity, setGravityAccel, setInvulnerable, setLastDamageCause, setLeashHolder, setLeashHolderUniqueId, setLiquidDrag, setMetadata, setOnGround, setOp, setPassenger, setPersistent, setPortalCooldown, setRawLocation, setRawLocation, setRotation, setSilent, setSize, setTicksLived, setUniqueId, setVelocity, setVisualFire, shouldSave, spawnAt, spigot, teamDisplayName, teleport, teleport, teleport, teleport, teleportToEnd, teleportToSpawn, toString, updateBoundingBox
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, 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
getName, name, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendPlainMessage, sendRichMessage
Methods inherited from interface org.bukkit.entity.Entity
addPassenger, addScoreboardTag, asHoverEvent, eject, fromMobSpawner, getBoundingBox, getChunk, getEntityId, getEntitySpawnReason, getFacing, getFallDistance, getFireTicks, getFreezeTicks, getHeight, getLastDamageCause, getLocation, getLocation, getMaxFireTicks, getMaxFreezeTicks, getNearbyEntities, getOrigin, getPassenger, getPassengers, getPistonMoveReaction, getPortalCooldown, getPose, getScoreboardTags, getServer, getSpawnCategory, getTicksLived, getTrackedPlayers, getType, getUniqueId, getVehicle, getWidth, getWorld, hasGravity, isCustomNameVisible, isDead, isEmpty, isFreezeTickingLocked, isFrozen, isGlowing, isInBubbleColumn, isInLava, isInPowderedSnow, isInRain, isInsideVehicle, isInvulnerable, isInWater, isInWaterOrBubbleColumn, isInWaterOrRain, isInWaterOrRainOrBubbleColumn, isOnGround, isPersistent, isSilent, isTicking, isValid, isVisualFire, leaveVehicle, lockFreezeTicks, playEffect, remove, removePassenger, removeScoreboardTag, setCustomNameVisible, setFallDistance, setFireTicks, setFreezeTicks, setGlowing, setGravity, setInvulnerable, setLastDamageCause, setPassenger, setPersistent, setPortalCooldown, setRotation, setSilent, setTicksLived, setVisualFire, spawnAt, spawnAt, spigot, teamDisplayName, teleport, teleport, teleport, teleport, teleportAsync, teleportAsync
Methods inherited from interface net.kyori.adventure.text.event.HoverEventSource
asHoverEvent
Methods inherited from interface org.bukkit.loot.Lootable
clearLootTable, hasLootTable, setLootTable
Methods inherited from interface com.destroystokyo.paper.loottable.LootableInventory
getLastLooted, hasPlayerLooted, setHasPlayerLooted
Methods inherited from interface org.bukkit.metadata.Metadatable
getMetadata, hasMetadata, removeMetadata, setMetadata
Methods inherited from interface org.bukkit.entity.Minecart
getDamage, getDerailedVelocityMod, getDisplayBlock, getDisplayBlockData, getDisplayBlockOffset, getFlyingVelocityMod, getMaxSpeed, getMinecartMaterial, isSlowWhenEmpty, setDamage, setDerailedVelocityMod, setDisplayBlock, setDisplayBlockData, setDisplayBlockOffset, setFlyingVelocityMod, setMaxSpeed, setSlowWhenEmpty
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.permissions.ServerOperator
isOp, setOp
Methods inherited from interface org.bukkit.entity.Vehicle
getVelocity, setVelocity
-
Constructor Details
-
Storage
public Storage(org.bukkit.Location location) Creates a minecart with a chest.- Parameters:
location
- the location.
-
-
Method Details
-
entityInteract
- Overrides:
entityInteract
in classGlowMinecart
-
getEntity
@NotNull public @NotNull org.bukkit.entity.Entity getEntity()- Specified by:
getEntity
in interfacecom.destroystokyo.paper.loottable.LootableEntityInventory
-
isRefillEnabled
public boolean isRefillEnabled()- Specified by:
isRefillEnabled
in interfacecom.destroystokyo.paper.loottable.LootableInventory
-
hasBeenFilled
public boolean hasBeenFilled()- Specified by:
hasBeenFilled
in interfacecom.destroystokyo.paper.loottable.LootableInventory
-
hasPlayerLooted
- Specified by:
hasPlayerLooted
in interfacecom.destroystokyo.paper.loottable.LootableInventory
-
getLastLooted
- Specified by:
getLastLooted
in interfacecom.destroystokyo.paper.loottable.LootableInventory
-
setHasPlayerLooted
- Specified by:
setHasPlayerLooted
in interfacecom.destroystokyo.paper.loottable.LootableInventory
-
hasPendingRefill
public boolean hasPendingRefill()- Specified by:
hasPendingRefill
in interfacecom.destroystokyo.paper.loottable.LootableInventory
-
getLastFilled
public long getLastFilled()- Specified by:
getLastFilled
in interfacecom.destroystokyo.paper.loottable.LootableInventory
-
getNextRefill
public long getNextRefill()- Specified by:
getNextRefill
in interfacecom.destroystokyo.paper.loottable.LootableInventory
-
setNextRefill
public long setNextRefill(long refillAt) - Specified by:
setNextRefill
in interfacecom.destroystokyo.paper.loottable.LootableInventory
-
getLootTable
@Nullable public @Nullable org.bukkit.loot.LootTable getLootTable()- Specified by:
getLootTable
in interfaceorg.bukkit.loot.Lootable
-
setLootTable
public void setLootTable(@Nullable @Nullable org.bukkit.loot.LootTable table) - Specified by:
setLootTable
in interfaceorg.bukkit.loot.Lootable
-
getSeed
public long getSeed()- Specified by:
getSeed
in interfaceorg.bukkit.loot.Lootable
-
setSeed
public void setSeed(long seed) - Specified by:
setSeed
in interfaceorg.bukkit.loot.Lootable
-
getInventory
public org.bukkit.inventory.Inventory getInventory()- Specified by:
getInventory
in interfaceorg.bukkit.inventory.InventoryHolder
-