本文整理匯總了Java中net.minecraft.block.material.MapColor.PURPLE屬性的典型用法代碼示例。如果您正苦於以下問題:Java MapColor.PURPLE屬性的具體用法?Java MapColor.PURPLE怎麽用?Java MapColor.PURPLE使用的例子?那麽, 這裏精選的屬性代碼示例或許可以為您提供幫助。您也可以進一步了解該屬性所在類net.minecraft.block.material.MapColor
的用法示例。
在下文中一共展示了MapColor.PURPLE屬性的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: BlockMycelium
protected BlockMycelium()
{
super(Material.GRASS, MapColor.PURPLE);
this.setDefaultState(this.blockState.getBaseState().withProperty(SNOWY, Boolean.valueOf(false)));
this.setTickRandomly(true);
this.setCreativeTab(CreativeTabs.BUILDING_BLOCKS);
}
示例2: BlockChorusFlower
protected BlockChorusFlower()
{
super(Material.PLANTS, MapColor.PURPLE);
this.setDefaultState(this.blockState.getBaseState().withProperty(AGE, Integer.valueOf(0)));
this.setCreativeTab(CreativeTabs.DECORATIONS);
this.setTickRandomly(true);
}
示例3: BlockPhotovoltaicPanel
public BlockPhotovoltaicPanel() {
super(Material.IRON, MapColor.PURPLE, "photovoltaic_panel");
this.setHardness(4.5F);
this.setHarvestLevel("pickaxe", 2);
this.setEnergeticItem(TilePhotovoltaicPanel.ENERGY_PRODUCTION, TilePhotovoltaicPanel.ENERGY_PRODUCTION, TilePhotovoltaicPanel.ENERGY_PRODUCTION);
}
示例4: BlockChorusPlant
protected BlockChorusPlant()
{
super(Material.PLANTS, MapColor.PURPLE);
this.setCreativeTab(CreativeTabs.DECORATIONS);
this.setDefaultState(this.blockState.getBaseState().withProperty(NORTH, Boolean.valueOf(false)).withProperty(EAST, Boolean.valueOf(false)).withProperty(SOUTH, Boolean.valueOf(false)).withProperty(WEST, Boolean.valueOf(false)).withProperty(UP, Boolean.valueOf(false)).withProperty(DOWN, Boolean.valueOf(false)));
}