Package net.glowstone.block.entity

Source Code of net.glowstone.block.entity.TEChest

package net.glowstone.block.entity;

import net.glowstone.block.GlowBlock;
import net.glowstone.block.GlowBlockState;
import net.glowstone.block.state.GlowChest;
import net.glowstone.inventory.GlowInventory;
import org.bukkit.event.inventory.InventoryType;

/**
* Tile entity for Chests.
*/
public class TEChest extends TEContainer {

    public TEChest(GlowBlock block) {
        super(block, new GlowInventory(new GlowChest(block), InventoryType.CHEST));
        setSaveId("Chest");
    }

    @Override
    public GlowBlockState getState() {
        return new GlowChest(block);
    }
}
TOP

Related Classes of net.glowstone.block.entity.TEChest

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.