本文整理匯總了Java中net.minecraft.item.Item.ToolMaterial.GOLD屬性的典型用法代碼示例。如果您正苦於以下問題:Java ToolMaterial.GOLD屬性的具體用法?Java ToolMaterial.GOLD怎麽用?Java ToolMaterial.GOLD使用的例子?那麽, 這裏精選的屬性代碼示例或許可以為您提供幫助。您也可以進一步了解該屬性所在類net.minecraft.item.Item.ToolMaterial
的用法示例。
在下文中一共展示了ToolMaterial.GOLD屬性的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: GoldBatType
public GoldBatType() {
super(new ResourceLocation("minecraft:gold"), ToolMaterial.GOLD);
}
示例2: init
@SuppressWarnings("deprecation")
public static void init()
{
hammerWood = new HammerBase("hammerWood", 64, ToolMaterial.WOOD);
hammerWood.setCreativeTab(ExNihiloAdscensio.tabExNihilo);
hammerStone = new HammerBase("hammerStone", 128, ToolMaterial.STONE);
hammerStone.setCreativeTab(ExNihiloAdscensio.tabExNihilo);
hammerIron = new HammerBase("hammerIron", 512, ToolMaterial.IRON);
hammerIron.setCreativeTab(ExNihiloAdscensio.tabExNihilo);
hammerDiamond = new HammerBase("hammerDiamond", 4096, ToolMaterial.DIAMOND);
hammerDiamond.setCreativeTab(ExNihiloAdscensio.tabExNihilo);
hammerGold = new HammerBase("hammerGold", 64, ToolMaterial.GOLD);
hammerGold.setCreativeTab(ExNihiloAdscensio.tabExNihilo);
crookWood = new CrookBase("crookWood", 64);
crookWood.setCreativeTab(ExNihiloAdscensio.tabExNihilo);
crookBone = new CrookBase("crookBone", 256);
crookBone.setCreativeTab(ExNihiloAdscensio.tabExNihilo);
mesh = new ItemMesh();
mesh.setCreativeTab(ExNihiloAdscensio.tabExNihilo);
resources = new ItemResource();
OreDictionary.registerOre("clayPorcelain", ItemResource.getResourceStack("porcelain_clay"));
cookedSilkworm = new ItemCookedSilkworm();
pebbles = new ItemPebble();
itemSeeds.add(new ItemSeedBase("oak", Blocks.SAPLING.getStateFromMeta(0)));
itemSeeds.add(new ItemSeedBase("spruce", Blocks.SAPLING.getStateFromMeta(1)));
itemSeeds.add(new ItemSeedBase("birch", Blocks.SAPLING.getStateFromMeta(2)));
itemSeeds.add(new ItemSeedBase("jungle", Blocks.SAPLING.getStateFromMeta(3)));
itemSeeds.add(new ItemSeedBase("acacia", Blocks.SAPLING.getStateFromMeta(4)));
itemSeeds.add(new ItemSeedBase("darkOak", Blocks.SAPLING.getStateFromMeta(5)));
itemSeeds.add(new ItemSeedBase("cactus", Blocks.CACTUS.getDefaultState()).setPlantType(EnumPlantType.Desert));
itemSeeds.add(new ItemSeedBase("sugarcane", Blocks.REEDS.getDefaultState()).setPlantType(EnumPlantType.Beach));
itemSeeds.add(new ItemSeedBase("carrot", Blocks.CARROTS.getDefaultState()).setPlantType(EnumPlantType.Crop));
itemSeeds.add(new ItemSeedBase("potato", Blocks.POTATOES.getDefaultState()).setPlantType(EnumPlantType.Crop));
dolls = new ItemDoll();
}