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
  • Constructor Details

    • GlowContainer

      public GlowContainer(GlowBlock block)
  • Method Details

    • setLock

      public void setLock(@Nullable @Nullable String lock)
      Specified by:
      setLock in interface org.bukkit.block.Lockable
    • setLootTable

      public void setLootTable(@Nullable @Nullable org.bukkit.loot.LootTable table)
      Specified by:
      setLootTable in interface org.bukkit.loot.Lootable
    • setLootTable

      public void setLootTable(@Nullable @Nullable org.bukkit.loot.LootTable table, long seed)
      Specified by:
      setLootTable in interface org.bukkit.loot.Lootable
    • getLootTable

      @Nullable public @Nullable org.bukkit.loot.LootTable getLootTable()
      Specified by:
      getLootTable in interface org.bukkit.loot.Lootable
    • hasLootTable

      public boolean hasLootTable()
      Specified by:
      hasLootTable in interface org.bukkit.loot.Lootable
    • setLootTableSeed

      public long setLootTableSeed(long seed)
    • clearLootTable

      public void clearLootTable()
      Specified by:
      clearLootTable in interface org.bukkit.loot.Lootable
    • getSeed

      public long getSeed()
      Specified by:
      getSeed in interface org.bukkit.loot.Lootable
    • setSeed

      public void setSeed(long seed)
      Specified by:
      setSeed in interface org.bukkit.loot.Lootable
    • isRefillEnabled

      public boolean isRefillEnabled()
      Specified by:
      isRefillEnabled in interface com.destroystokyo.paper.loottable.LootableInventory
    • hasBeenFilled

      public boolean hasBeenFilled()
      Specified by:
      hasBeenFilled in interface com.destroystokyo.paper.loottable.LootableInventory
    • hasPlayerLooted

      public boolean hasPlayerLooted(UUID uuid)
      Specified by:
      hasPlayerLooted in interface com.destroystokyo.paper.loottable.LootableInventory
    • getLastLooted

      public Long getLastLooted(UUID uuid)
      Specified by:
      getLastLooted in interface com.destroystokyo.paper.loottable.LootableInventory
    • setHasPlayerLooted

      public boolean setHasPlayerLooted(UUID uuid, boolean b)
      Specified by:
      setHasPlayerLooted in interface com.destroystokyo.paper.loottable.LootableInventory
    • hasPendingRefill

      public boolean hasPendingRefill()
      Specified by:
      hasPendingRefill in interface com.destroystokyo.paper.loottable.LootableInventory
    • getLastFilled

      public long getLastFilled()
      Specified by:
      getLastFilled in interface com.destroystokyo.paper.loottable.LootableInventory
    • getNextRefill

      public long getNextRefill()
      Specified by:
      getNextRefill in interface com.destroystokyo.paper.loottable.LootableInventory
    • setNextRefill

      public long setNextRefill(long l)
      Specified by:
      setNextRefill in interface com.destroystokyo.paper.loottable.LootableInventory
    • isLocked

      public boolean isLocked()
      Specified by:
      isLocked in interface org.bukkit.block.Lockable
    • getSnapshotInventory

      @NotNull public @NotNull org.bukkit.inventory.Inventory getSnapshotInventory()
      Specified by:
      getSnapshotInventory in interface org.bukkit.block.Container
    • getInventory

      @NotNull public @NotNull org.bukkit.inventory.Inventory getInventory()
      Specified by:
      getInventory in interface org.bukkit.block.Container
      Specified by:
      getInventory in interface org.bukkit.inventory.InventoryHolder
    • customName

      @Nullable public @Nullable net.kyori.adventure.text.Component customName()
      Specified by:
      customName in interface org.bukkit.Nameable
    • customName

      public void customName(@Nullable @Nullable net.kyori.adventure.text.Component component)
      Specified by:
      customName in interface org.bukkit.Nameable
    • getPersistentDataContainer

      @NotNull public @NotNull org.bukkit.persistence.PersistentDataContainer getPersistentDataContainer()
      Specified by:
      getPersistentDataContainer in interface org.bukkit.persistence.PersistentDataHolder
      Specified by:
      getPersistentDataContainer in interface org.bukkit.block.TileState
    • getLock

      @NotNull public @NotNull String getLock()
      Specified by:
      getLock in interface org.bukkit.block.Lockable
    • getCustomName

      public String getCustomName()
      Specified by:
      getCustomName in interface org.bukkit.Nameable
    • setCustomName

      public void setCustomName(String customName)
      Specified by:
      setCustomName in interface org.bukkit.Nameable