当前位置: 首页>>代码示例>>Java>>正文


Java Blocks.SPRUCE_DOOR属性代码示例

本文整理汇总了Java中net.minecraft.init.Blocks.SPRUCE_DOOR属性的典型用法代码示例。如果您正苦于以下问题:Java Blocks.SPRUCE_DOOR属性的具体用法?Java Blocks.SPRUCE_DOOR怎么用?Java Blocks.SPRUCE_DOOR使用的例子?那么恭喜您, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在net.minecraft.init.Blocks的用法示例。


在下文中一共展示了Blocks.SPRUCE_DOOR属性的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: func_189925_i

protected BlockDoor func_189925_i()
{
    switch (this.structureType)
    {
        case 2:
            return Blocks.ACACIA_DOOR;

        case 3:
            return Blocks.SPRUCE_DOOR;

        default:
            return Blocks.OAK_DOOR;
    }
}
 
开发者ID:sudofox,项目名称:Backmemed,代码行数:14,代码来源:StructureVillagePieces.java

示例2: func_189925_i

protected BlockDoor func_189925_i()
{
    switch (this.structureType)
    {
        case 2:
            return Blocks.ACACIA_DOOR;
        case 3:
            return Blocks.SPRUCE_DOOR;
        default:
            return Blocks.OAK_DOOR;
    }
}
 
开发者ID:F1r3w477,项目名称:CustomWorldGen,代码行数:12,代码来源:StructureVillagePieces.java

示例3: getMapColor

/**
 * Get the MapColor for this Block and the given BlockState
 */
public MapColor getMapColor(IBlockState state)
{
    return state.getBlock() == Blocks.IRON_DOOR ? MapColor.IRON : (state.getBlock() == Blocks.OAK_DOOR ? BlockPlanks.EnumType.OAK.getMapColor() : (state.getBlock() == Blocks.SPRUCE_DOOR ? BlockPlanks.EnumType.SPRUCE.getMapColor() : (state.getBlock() == Blocks.BIRCH_DOOR ? BlockPlanks.EnumType.BIRCH.getMapColor() : (state.getBlock() == Blocks.JUNGLE_DOOR ? BlockPlanks.EnumType.JUNGLE.getMapColor() : (state.getBlock() == Blocks.ACACIA_DOOR ? BlockPlanks.EnumType.ACACIA.getMapColor() : (state.getBlock() == Blocks.DARK_OAK_DOOR ? BlockPlanks.EnumType.DARK_OAK.getMapColor() : super.getMapColor(state)))))));
}
 
开发者ID:sudofox,项目名称:Backmemed,代码行数:7,代码来源:BlockDoor.java

示例4: getItem

private Item getItem()
{
    return this == Blocks.IRON_DOOR ? Items.IRON_DOOR : (this == Blocks.SPRUCE_DOOR ? Items.SPRUCE_DOOR : (this == Blocks.BIRCH_DOOR ? Items.BIRCH_DOOR : (this == Blocks.JUNGLE_DOOR ? Items.JUNGLE_DOOR : (this == Blocks.ACACIA_DOOR ? Items.ACACIA_DOOR : (this == Blocks.DARK_OAK_DOOR ? Items.DARK_OAK_DOOR : Items.OAK_DOOR)))));
}
 
开发者ID:sudofox,项目名称:Backmemed,代码行数:4,代码来源:BlockDoor.java


注:本文中的net.minecraft.init.Blocks.SPRUCE_DOOR属性示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。