本文整理匯總了Java中net.minecraft.item.EnumToolMaterial.WOOD屬性的典型用法代碼示例。如果您正苦於以下問題:Java EnumToolMaterial.WOOD屬性的具體用法?Java EnumToolMaterial.WOOD怎麽用?Java EnumToolMaterial.WOOD使用的例子?那麽, 這裏精選的屬性代碼示例或許可以為您提供幫助。您也可以進一步了解該屬性所在類net.minecraft.item.EnumToolMaterial
的用法示例。
在下文中一共展示了EnumToolMaterial.WOOD屬性的6個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: getGravity
private float getGravity()
{
float gravity = 0.05F;
if(type != null)
{
if(type.material == ToolMaterialMedieval.MITHRIL)
{
gravity *= 0.5F;
}
else if(type.material == EnumToolMaterial.WOOD)
{
gravity *= 0.75F;
}
if(type.arrowType == 1)
{
gravity *= 0.5F;
}
else if(type.arrowType == 2)
{
gravity *= 1.5F;
}
}
return gravity;
}
示例2: isPrimitive
private boolean isPrimitive(ItemStack heldItem)
{
if(heldItem == null)return true;
if(heldItem.isItemEqual(ItemListMF.component(ItemListMF.rock)))
{
return true;
}
if(heldItem.itemID == Item.swordStone.itemID || heldItem.itemID == Item.swordWood.itemID)
{
return true;
}
if(heldItem.getItem() != null)
{
if(heldItem.getItem() instanceof IPublicMaterialItem)
{
EnumToolMaterial mat = ((IPublicMaterialItem)heldItem.getItem()).getMaterial();
return mat == EnumToolMaterial.STONE || mat == EnumToolMaterial.WOOD || mat == ToolMaterialMedieval.PRIMITIVE_COPPER || mat == ToolMaterialMedieval.PRIMITIVE_STONE;
}
if(heldItem.getItem() instanceof ItemWeaponMF)
{
return ((ItemWeaponMF)heldItem.getItem()).isPrimitive();
}
}
return false;
}
示例3: AliquoHammer
public AliquoHammer(int id, String material)
{
super(id, EnumToolMaterial.WOOD);
this.material = material;
setUnlocalizedName("ExAliquo." + LOWER_CAMEL.to(UPPER_CAMEL, material) + "Hammer");
setCreativeTab(Registries.exatab);
}
示例4: isReed
private boolean isReed()
{
return type != null && type.material == EnumToolMaterial.WOOD;
}
示例5: HayCrook
public HayCrook(int id)
{
super(id, EnumToolMaterial.WOOD);
this.setMaxDamage(this.getMaxDamage()*8);
}
示例6: AliquoHammer
public AliquoHammer(int id, String material) {
super(id, EnumToolMaterial.WOOD);
this.material = material;
setUnlocalizedName(
"ExAliquo." + LOWER_CAMEL.to(UPPER_CAMEL, material) + "Hammer");
}