7891011121314
import org.bukkit.event.inventory.InventoryType; public class TEDispenser extends TEContainer { public TEDispenser(GlowBlock block) { super(block, new GlowInventory(new GlowDispenser(block), InventoryType.DISPENSER)); setSaveId("Trap"); }
13141516171819
setSaveId("Trap"); } @Override public GlowBlockState getState() { return new GlowDispenser(block); }