Package net.glowstone.block.entity.state
Class GlowContainer
java.lang.Object
net.glowstone.block.GlowBlockState
net.glowstone.block.entity.state.GlowContainer
- All Implemented Interfaces:
com.destroystokyo.paper.loottable.LootableBlockInventory
,com.destroystokyo.paper.loottable.LootableInventory
,org.bukkit.block.BlockState
,org.bukkit.block.Container
,org.bukkit.block.Lockable
,org.bukkit.block.TileState
,org.bukkit.inventory.BlockInventoryHolder
,org.bukkit.inventory.InventoryHolder
,org.bukkit.loot.Lootable
,org.bukkit.metadata.Metadatable
,org.bukkit.Nameable
,org.bukkit.persistence.PersistentDataHolder
- Direct Known Subclasses:
GlowBeacon
,GlowBrewingStand
,GlowChest
,GlowDispenser
,GlowFurnace
,GlowHopper
public abstract class GlowContainer
extends GlowBlockState
implements com.destroystokyo.paper.loottable.LootableBlockInventory, org.bukkit.block.Lockable, org.bukkit.Nameable, org.bukkit.block.Container
-
Field Summary
Fields inherited from class net.glowstone.block.GlowBlockState
blockData, data, type
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
@Nullable net.kyori.adventure.text.Component
void
customName
(@Nullable net.kyori.adventure.text.Component component) @NotNull org.bukkit.inventory.Inventory
long
getLastLooted
(UUID uuid) @NotNull String
getLock()
@Nullable org.bukkit.loot.LootTable
long
@NotNull org.bukkit.persistence.PersistentDataContainer
long
getSeed()
@NotNull org.bukkit.inventory.Inventory
boolean
boolean
boolean
boolean
hasPlayerLooted
(UUID uuid) boolean
isLocked()
boolean
void
setCustomName
(String customName) boolean
setHasPlayerLooted
(UUID uuid, boolean b) void
void
setLootTable
(@Nullable org.bukkit.loot.LootTable table) void
setLootTable
(@Nullable org.bukkit.loot.LootTable table, long seed) long
setLootTableSeed
(long seed) long
setNextRefill
(long l) void
setSeed
(long seed) Methods inherited from class net.glowstone.block.GlowBlockState
canEqual, equals, getBlock, getBlockData, getChunk, getData, getLightLevel, getLocation, getLocation, getMetadata, getRawData, getType, getWorld, getX, getY, getZ, hashCode, hasMetadata, isCollidable, isFlowed, isPlaced, isSnapshot, removeMetadata, setBlockData, setData, setFlowed, setMetadata, setRawData, setType, toString, update, update, update
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.bukkit.inventory.BlockInventoryHolder
getBlock
Methods inherited from interface org.bukkit.block.BlockState
getBlock, getBlockData, getChunk, getData, getLightLevel, getLocation, getLocation, getRawData, getType, getWorld, getX, getY, getZ, isCollidable, isPlaced, setBlockData, setData, setRawData, setType, update, update, update
Methods inherited from interface com.destroystokyo.paper.loottable.LootableBlockInventory
getBlock
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.block.TileState
isSnapshot
-
Constructor Details
-
GlowContainer
-
-
Method Details
-
setLock
- Specified by:
setLock
in interfaceorg.bukkit.block.Lockable
-
setLootTable
public void setLootTable(@Nullable @Nullable org.bukkit.loot.LootTable table) - Specified by:
setLootTable
in interfaceorg.bukkit.loot.Lootable
-
setLootTable
public void setLootTable(@Nullable @Nullable org.bukkit.loot.LootTable table, long seed) - Specified by:
setLootTable
in interfaceorg.bukkit.loot.Lootable
-
getLootTable
@Nullable public @Nullable org.bukkit.loot.LootTable getLootTable()- Specified by:
getLootTable
in interfaceorg.bukkit.loot.Lootable
-
hasLootTable
public boolean hasLootTable()- Specified by:
hasLootTable
in interfaceorg.bukkit.loot.Lootable
-
setLootTableSeed
public long setLootTableSeed(long seed) -
clearLootTable
public void clearLootTable()- Specified by:
clearLootTable
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
-
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 l) - Specified by:
setNextRefill
in interfacecom.destroystokyo.paper.loottable.LootableInventory
-
isLocked
public boolean isLocked()- Specified by:
isLocked
in interfaceorg.bukkit.block.Lockable
-
getSnapshotInventory
@NotNull public @NotNull org.bukkit.inventory.Inventory getSnapshotInventory()- Specified by:
getSnapshotInventory
in interfaceorg.bukkit.block.Container
-
getInventory
@NotNull public @NotNull org.bukkit.inventory.Inventory getInventory()- Specified by:
getInventory
in interfaceorg.bukkit.block.Container
- Specified by:
getInventory
in interfaceorg.bukkit.inventory.InventoryHolder
-
customName
@Nullable public @Nullable net.kyori.adventure.text.Component customName()- Specified by:
customName
in interfaceorg.bukkit.Nameable
-
customName
public void customName(@Nullable @Nullable net.kyori.adventure.text.Component component) - Specified by:
customName
in interfaceorg.bukkit.Nameable
-
getPersistentDataContainer
@NotNull public @NotNull org.bukkit.persistence.PersistentDataContainer getPersistentDataContainer()- Specified by:
getPersistentDataContainer
in interfaceorg.bukkit.persistence.PersistentDataHolder
- Specified by:
getPersistentDataContainer
in interfaceorg.bukkit.block.TileState
- Overrides:
getPersistentDataContainer
in classGlowBlockState
-
getLock
- Specified by:
getLock
in interfaceorg.bukkit.block.Lockable
-
getCustomName
- Specified by:
getCustomName
in interfaceorg.bukkit.Nameable
-
setCustomName
- Specified by:
setCustomName
in interfaceorg.bukkit.Nameable
-