当前位置: 首页>>代码示例>>Java>>正文


Java EnumWeight类代码示例

本文整理汇总了Java中com.bioxx.tfc.api.Enums.EnumWeight的典型用法代码示例。如果您正苦于以下问题:Java EnumWeight类的具体用法?Java EnumWeight怎么用?Java EnumWeight使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


EnumWeight类属于com.bioxx.tfc.api.Enums包,在下文中一共展示了EnumWeight类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: ItemClayBrick

import com.bioxx.tfc.api.Enums.EnumWeight; //导入依赖的package包/类
public ItemClayBrick()
{
	super();
	this.metaNames = new String[]{"Clay Brick", "Ceramic Brick"};
	this.maxStackSize = 64;
	this.stackable = true;
	this.setWeight(EnumWeight.MEDIUM);
	this.setSize(EnumSize.SMALL);
}
 
开发者ID:Wahazar,项目名称:TFCPrimitiveTech,代码行数:10,代码来源:ItemClayBrick.java

示例2: ItemWireDrawBench

import com.bioxx.tfc.api.Enums.EnumWeight; //导入依赖的package包/类
public ItemWireDrawBench() {
	super();
	this.setFolder("devices/");
	this.setCreativeTab(TFCTech.TFCTECH);
	this.setSize(EnumSize.HUGE);
	this.setWeight(EnumWeight.HEAVY);
}
 
开发者ID:Shurgent,项目名称:TFCTech,代码行数:8,代码来源:ItemWireDrawBench.java

示例3: ItemTFCTechForgedItem

import com.bioxx.tfc.api.Enums.EnumWeight; //导入依赖的package包/类
public ItemTFCTechForgedItem() {
	super();
	this.setMaxDamage(100);
	this.setMaxStackSize(4);
	setCreativeTab(TFCTech.TFCTECH);
	this.setFolder("tools/");
	this.setWeight(EnumWeight.MEDIUM);
	this.setSize(EnumSize.SMALL);
}
 
开发者ID:Shurgent,项目名称:TFCTech,代码行数:10,代码来源:ItemTFCTechForgedItem.java

示例4: ItemCeramicInsulator

import com.bioxx.tfc.api.Enums.EnumWeight; //导入依赖的package包/类
public ItemCeramicInsulator()
{
	super();
	this.metaNames = new String[]{"Clay Insulator", "Ceramic Insulator"};
	this.stackable = false;
	this.setWeight(EnumWeight.LIGHT);
	this.setSize(EnumSize.SMALL);
}
 
开发者ID:Wahazar,项目名称:TerraFirmaProgressivePack,代码行数:9,代码来源:ItemCeramicInsulator.java

示例5: ItemPlankPlaned

import com.bioxx.tfc.api.Enums.EnumWeight; //导入依赖的package包/类
ItemPlankPlaned(){
    super();
    this.hasSubtypes = true;
    this.setMaxDamage(0);
    setCreativeTab(CreativeTabs.TFCAdditions_Tab);
    this.metaNames = Names.WOOD_ALL.clone();
    this.setWeight(EnumWeight.LIGHT);
    this.setSize(EnumSize.MEDIUM);
}
 
开发者ID:raymondbh,项目名称:TFC-Additions,代码行数:10,代码来源:ItemPlankPlaned.java

示例6: ItemIceSawHead

import com.bioxx.tfc.api.Enums.EnumWeight; //导入依赖的package包/类
public ItemIceSawHead() {
	super();
	this.setMaxDamage(100);
	this.setMaxStackSize(4);
	setCreativeTab(TFCTabs.TFC_MISC);
	this.setWeight(EnumWeight.MEDIUM);
	this.setSize(EnumSize.SMALL);
}
 
开发者ID:Sladki,项目名称:TFC-Cellars-Addon,代码行数:9,代码来源:ItemIceSawHead.java

示例7: getWeight

import com.bioxx.tfc.api.Enums.EnumWeight; //导入依赖的package包/类
@Override
public EnumWeight getWeight(ItemStack is)
{
	float weight = Food.getWeight(is);
	if(weight < 80)
		return EnumWeight.LIGHT;
	else if(weight < 160)
		return EnumWeight.MEDIUM;
	else
		return EnumWeight.HEAVY;
}
 
开发者ID:StrayWolfe,项目名称:Cooking-with-TFC,代码行数:12,代码来源:ItemTFCMealTransform.java

示例8: ItemCustomSeeds

import com.bioxx.tfc.api.Enums.EnumWeight; //导入依赖的package包/类
public ItemCustomSeeds(int cropId)
{
	super();
	this.cropId = cropId;
	setWeight(EnumWeight.LIGHT);
	setSize(EnumSize.TINY);
	setCreativeTab(Tabs.MAINTAB);
}
 
开发者ID:StrayWolfe,项目名称:Cooking-with-TFC,代码行数:9,代码来源:ItemCustomSeeds.java

示例9: ItemWoodenMinecartChest

import com.bioxx.tfc.api.Enums.EnumWeight; //导入依赖的package包/类
public ItemWoodenMinecartChest(int par2)
{
	super();
	this.maxStackSize = 1;
	this.minecartType = par2;
	this.setCreativeTab(CreativeTabs.tabTransport);
	this.setWeight(EnumWeight.HEAVY);
	this.setSize(EnumSize.HUGE);
}
 
开发者ID:vidaj,项目名称:TFCRailcraft,代码行数:10,代码来源:ItemWoodenMinecartChest.java

示例10: ItemHeveaLog

import com.bioxx.tfc.api.Enums.EnumWeight; //导入依赖的package包/类
public ItemHeveaLog()
{
	super();
	this.setUnlocalizedName("Hevea Log");
	this.setMaxDamage(0);
	this.setCreativeTab(TFCTabs.TFC_MATERIALS);
	this.setWeight(EnumWeight.MEDIUM);
	this.setSize(EnumSize.MEDIUM);
}
 
开发者ID:emris,项目名称:BCTFCcrossover,代码行数:10,代码来源:ItemHeveaLog.java

示例11: getWeight

import com.bioxx.tfc.api.Enums.EnumWeight; //导入依赖的package包/类
@Override
public EnumWeight getWeight(ItemStack is)
{
	return EnumWeight.LIGHT;
}
 
开发者ID:Wahazar,项目名称:TFCPrimitiveTech,代码行数:6,代码来源:ItemSlingshot.java

示例12: getWeight

import com.bioxx.tfc.api.Enums.EnumWeight; //导入依赖的package包/类
@Override
public EnumWeight getWeight(ItemStack is)
{
	return EnumWeight.MEDIUM;
}
 
开发者ID:Wahazar,项目名称:TFCPrimitiveTech,代码行数:6,代码来源:ItemSharpStone.java

示例13: getWeight

import com.bioxx.tfc.api.Enums.EnumWeight; //导入依赖的package包/类
@Override
public EnumWeight getWeight(ItemStack is)
{
    return EnumWeight.HEAVY;
}
 
开发者ID:Wahazar,项目名称:TFCPrimitiveTech,代码行数:6,代码来源:ItemBlockWoodenPressWet.java

示例14: getWeight

import com.bioxx.tfc.api.Enums.EnumWeight; //导入依赖的package包/类
@Override
public EnumWeight getWeight(ItemStack is)
{
	return EnumWeight.HEAVY;
}
 
开发者ID:Wahazar,项目名称:TFCPrimitiveTech,代码行数:6,代码来源:ItemWoodenClub.java

示例15: getWeight

import com.bioxx.tfc.api.Enums.EnumWeight; //导入依赖的package包/类
@Override
public EnumWeight getWeight(ItemStack is) {
	return EnumWeight.MEDIUM;
}
 
开发者ID:Shurgent,项目名称:TFCTech,代码行数:5,代码来源:ItemModSapling.java


注:本文中的com.bioxx.tfc.api.Enums.EnumWeight类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。