Java 类org.bukkit.material.Furnace 实例源码

项目:AnnihilationPro    文件:GameMap.java   
public void addEnderFurnace(FacingObject furnace)
{
    MapKey key = MapKey.getKey(furnace.getLocation());
    if(!enderFurnaces.containsKey(key))
    {
        try
        {
            Block block = furnace.getLocation().toLocation().getBlock();
            if(block.getType() != Material.FURNACE && block.getType() != Material.BURNING_FURNACE)
                block.setType(Material.BURNING_FURNACE);

            Furnace f = new Furnace(Material.BURNING_FURNACE);
            f.setFacingDirection(furnace.getFacingDirection());
            BlockState s = block.getState();
            s.setData(f);
            s.update(true);
        }
        catch(Exception e)
        {

        }
        enderFurnaces.put(key, furnace);
    }
}
项目:BedrockAPI    文件:Furnace.java   
public Furnace() {
}
项目:BedrockAPI    文件:Furnace.java   
public Furnace(BlockFace direction) {
}
项目:BedrockAPI    文件:Furnace.java   
@Deprecated public Furnace(int type) {
}
项目:BedrockAPI    文件:Furnace.java   
public Furnace(Material type) {
}
项目:BedrockAPI    文件:Furnace.java   
@Deprecated public Furnace(int type, byte data) {
}
项目:BedrockAPI    文件:Furnace.java   
@Deprecated public Furnace(Material type, byte data) {
}
项目:BedrockAPI    文件:Furnace.java   
public Furnace clone() {
    return null;
}