Class BlockInventoryHolder

java.lang.Object
ch.njol.skript.util.BlockStateBlock
ch.njol.skript.util.BlockInventoryHolder
All Implemented Interfaces:
net.kyori.adventure.translation.Translatable, org.bukkit.block.Block, org.bukkit.inventory.InventoryHolder, org.bukkit.metadata.Metadatable, org.bukkit.Translatable

public class BlockInventoryHolder extends BlockStateBlock implements org.bukkit.inventory.InventoryHolder
Main usage is ExprInventoryInfo This class allows Skript to return a block while being able to recognize it as InventoryHolder, You may only use this class if a expression's return type is an InventoryHolder.
  • Constructor Details

    • BlockInventoryHolder

      public BlockInventoryHolder(org.bukkit.block.BlockState state)
  • Method Details

    • getInventory

      public org.bukkit.inventory.Inventory getInventory()
      Specified by:
      getInventory in interface org.bukkit.inventory.InventoryHolder