本文整理汇总了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;
}
}
示例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;
}
}
示例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)))))));
}
示例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)))));
}