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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid@Nullable net.kyori.adventure.text.ComponentvoidcustomName(@Nullable net.kyori.adventure.text.Component component) @NotNull org.bukkit.inventory.InventorylonggetLastLooted(UUID uuid) @NotNull StringgetLock()@Nullable org.bukkit.loot.LootTablelong@NotNull org.bukkit.persistence.PersistentDataContainerlonggetSeed()@NotNull org.bukkit.inventory.InventorybooleanbooleanbooleanbooleanhasPlayerLooted(UUID uuid) booleanisLocked()booleanvoidsetCustomName(String customName) booleansetHasPlayerLooted(UUID uuid, boolean b) voidvoidsetLootTable(@Nullable org.bukkit.loot.LootTable table) voidsetLootTable(@Nullable org.bukkit.loot.LootTable table, long seed) longsetLootTableSeed(long seed) longsetNextRefill(long l) voidsetSeed(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, isFlowed, isPlaced, removeMetadata, setBlockData, setData, setFlowed, setMetadata, setRawData, setType, toString, update, update, updateMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.bukkit.inventory.BlockInventoryHolder
getBlockMethods inherited from interface org.bukkit.block.BlockState
getBlock, getBlockData, getChunk, getData, getLightLevel, getLocation, getLocation, getRawData, getType, getWorld, getX, getY, getZ, isPlaced, setBlockData, setData, setRawData, setType, update, update, updateMethods inherited from interface com.destroystokyo.paper.loottable.LootableBlockInventory
getBlockMethods inherited from interface com.destroystokyo.paper.loottable.LootableInventory
getLastLooted, hasPlayerLooted, setHasPlayerLootedMethods inherited from interface org.bukkit.metadata.Metadatable
getMetadata, hasMetadata, removeMetadata, setMetadata
-
Constructor Details
-
GlowContainer
-
-
Method Details
-
setLock
- Specified by:
setLockin interfaceorg.bukkit.block.Lockable
-
setLootTable
public void setLootTable(@Nullable @Nullable org.bukkit.loot.LootTable table) - Specified by:
setLootTablein interfaceorg.bukkit.loot.Lootable
-
setLootTable
public void setLootTable(@Nullable @Nullable org.bukkit.loot.LootTable table, long seed) - Specified by:
setLootTablein interfaceorg.bukkit.loot.Lootable
-
getLootTable
@Nullable public @Nullable org.bukkit.loot.LootTable getLootTable()- Specified by:
getLootTablein interfaceorg.bukkit.loot.Lootable
-
hasLootTable
public boolean hasLootTable()- Specified by:
hasLootTablein interfaceorg.bukkit.loot.Lootable
-
setLootTableSeed
public long setLootTableSeed(long seed) -
clearLootTable
public void clearLootTable()- Specified by:
clearLootTablein interfaceorg.bukkit.loot.Lootable
-
getSeed
public long getSeed()- Specified by:
getSeedin interfaceorg.bukkit.loot.Lootable
-
setSeed
public void setSeed(long seed) - Specified by:
setSeedin interfaceorg.bukkit.loot.Lootable
-
isRefillEnabled
public boolean isRefillEnabled()- Specified by:
isRefillEnabledin interfacecom.destroystokyo.paper.loottable.LootableInventory
-
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 l) - Specified by:
setNextRefillin interfacecom.destroystokyo.paper.loottable.LootableInventory
-
isLocked
public boolean isLocked()- Specified by:
isLockedin interfaceorg.bukkit.block.Lockable
-
getSnapshotInventory
@NotNull public @NotNull org.bukkit.inventory.Inventory getSnapshotInventory()- Specified by:
getSnapshotInventoryin interfaceorg.bukkit.block.Container
-
getInventory
@NotNull public @NotNull org.bukkit.inventory.Inventory getInventory()- Specified by:
getInventoryin interfaceorg.bukkit.block.Container- Specified by:
getInventoryin interfaceorg.bukkit.inventory.InventoryHolder
-
customName
@Nullable public @Nullable net.kyori.adventure.text.Component customName()- Specified by:
customNamein interfaceorg.bukkit.Nameable
-
customName
public void customName(@Nullable @Nullable net.kyori.adventure.text.Component component) - Specified by:
customNamein interfaceorg.bukkit.Nameable
-
getPersistentDataContainer
@NotNull public @NotNull org.bukkit.persistence.PersistentDataContainer getPersistentDataContainer()- Specified by:
getPersistentDataContainerin interfaceorg.bukkit.persistence.PersistentDataHolder- Specified by:
getPersistentDataContainerin interfaceorg.bukkit.block.TileState
-
getLock
- Specified by:
getLockin interfaceorg.bukkit.block.Lockable
-
getCustomName
- Specified by:
getCustomNamein interfaceorg.bukkit.Nameable
-
setCustomName
- Specified by:
setCustomNamein interfaceorg.bukkit.Nameable
-