當前位置: 首頁>>代碼示例>>Java>>正文


Java ToolMaterial.WOOD屬性代碼示例

本文整理匯總了Java中net.minecraft.item.Item.ToolMaterial.WOOD屬性的典型用法代碼示例。如果您正苦於以下問題:Java ToolMaterial.WOOD屬性的具體用法?Java ToolMaterial.WOOD怎麽用?Java ToolMaterial.WOOD使用的例子?那麽, 這裏精選的屬性代碼示例或許可以為您提供幫助。您也可以進一步了解該屬性所在net.minecraft.item.Item.ToolMaterial的用法示例。


在下文中一共展示了ToolMaterial.WOOD屬性的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: ItemHuntsmanSpear

public ItemHuntsmanSpear() {
   super(ToolMaterial.WOOD);
   this.effectiveMaterial = ToolMaterial.EMERALD;
   this.effectiveWeaponDamage = 4.0F + this.effectiveMaterial.getDamageVsEntity() + 1.0F;
   this.setMaxDamage(this.effectiveMaterial.getMaxUses());
   this.setCreativeTab(WitcheryCreativeTab.INSTANCE);
}
 
開發者ID:lerion13,項目名稱:witchery,代碼行數:7,代碼來源:ItemHuntsmanSpear.java

示例2: WoodBatType

public WoodBatType() {
	super(new ResourceLocation("minecraft:wood"), ToolMaterial.WOOD);
}
 
開發者ID:Alec-WAM,項目名稱:CrystalMod,代碼行數:3,代碼來源:WoodBatType.java

示例3: 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();
	
}
 
開發者ID:MikeLydeamore,項目名稱:ExNihiloAdscensio,代碼行數:48,代碼來源:ENItems.java


注:本文中的net.minecraft.item.Item.ToolMaterial.WOOD屬性示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。