本文整理汇总了Java中com.bioxx.tfc.api.Enums.EnumSize类的典型用法代码示例。如果您正苦于以下问题:Java EnumSize类的具体用法?Java EnumSize怎么用?Java EnumSize使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
EnumSize类属于com.bioxx.tfc.api.Enums包,在下文中一共展示了EnumSize类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: ItemClayBrick
import com.bioxx.tfc.api.Enums.EnumSize; //导入依赖的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);
}
示例2: ItemWireDrawBench
import com.bioxx.tfc.api.Enums.EnumSize; //导入依赖的package包/类
public ItemWireDrawBench() {
super();
this.setFolder("devices/");
this.setCreativeTab(TFCTech.TFCTECH);
this.setSize(EnumSize.HUGE);
this.setWeight(EnumWeight.HEAVY);
}
示例3: ItemModIngot
import com.bioxx.tfc.api.Enums.EnumSize; //导入依赖的package包/类
public ItemModIngot(String m, int amt) {
super();
this.setMetal(m, amt);
if (amt > 100) {
this.setSize(EnumSize.LARGE);
}
}
示例4: ItemModMetalItem
import com.bioxx.tfc.api.Enums.EnumSize; //导入依赖的package包/类
public ItemModMetalItem(String m, int amt, String folder) {
this();
this.setFolder(folder + "/");
this.setMetal(m, amt);
if (amt > 100) {
size = EnumSize.LARGE;
}
}
示例5: ItemTFCTechForgedItem
import com.bioxx.tfc.api.Enums.EnumSize; //导入依赖的package包/类
public ItemTFCTechForgedItem() {
super();
this.setMaxDamage(100);
this.setMaxStackSize(4);
setCreativeTab(TFCTech.TFCTECH);
this.setFolder("tools/");
this.setWeight(EnumWeight.MEDIUM);
this.setSize(EnumSize.SMALL);
}
示例6: ItemCeramicInsulator
import com.bioxx.tfc.api.Enums.EnumSize; //导入依赖的package包/类
public ItemCeramicInsulator()
{
super();
this.metaNames = new String[]{"Clay Insulator", "Ceramic Insulator"};
this.stackable = false;
this.setWeight(EnumWeight.LIGHT);
this.setSize(EnumSize.SMALL);
}
示例7: ItemPlankPlaned
import com.bioxx.tfc.api.Enums.EnumSize; //导入依赖的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);
}
示例8: ItemLiquidDye
import com.bioxx.tfc.api.Enums.EnumSize; //导入依赖的package包/类
public ItemLiquidDye()
{
super();
this.setMaxDamage(0);
this.setSize(EnumSize.MEDIUM);
this.setHasSubtypes(true);
}
示例9: ContainerCellarShelf
import com.bioxx.tfc.api.Enums.EnumSize; //导入依赖的package包/类
public ContainerCellarShelf(InventoryPlayer player, TECellarShelf tileEntity) {
for(int y = 0; y < 2; y++) {
for(int x = 0; x < 7; x++) {
addSlotToContainer(new SlotCookableFoodOnly(tileEntity,
x + (y * 7), //Slot id
26 + (x * 18), //Slot x
25 + (y * 18) //Slot y
).setSize(EnumSize.HUGE));
}
}
bindPlayerInventory(player);
}
示例10: ItemIceSawHead
import com.bioxx.tfc.api.Enums.EnumSize; //导入依赖的package包/类
public ItemIceSawHead() {
super();
this.setMaxDamage(100);
this.setMaxStackSize(4);
setCreativeTab(TFCTabs.TFC_MISC);
this.setWeight(EnumWeight.MEDIUM);
this.setSize(EnumSize.SMALL);
}
示例11: getSize
import com.bioxx.tfc.api.Enums.EnumSize; //导入依赖的package包/类
@Override
public EnumSize getSize(ItemStack is)
{
float weight = Food.getWeight(is);
if(weight <= 20)
return EnumSize.TINY;
else if(weight <= 40)
return EnumSize.VERYSMALL;
else if(weight <= 80)
return EnumSize.SMALL;
else
return EnumSize.MEDIUM;
}
示例12: ItemCustomSeeds
import com.bioxx.tfc.api.Enums.EnumSize; //导入依赖的package包/类
public ItemCustomSeeds(int cropId)
{
super();
this.cropId = cropId;
setWeight(EnumWeight.LIGHT);
setSize(EnumSize.TINY);
setCreativeTab(Tabs.MAINTAB);
}
示例13: ItemWoodenMinecartChest
import com.bioxx.tfc.api.Enums.EnumSize; //导入依赖的package包/类
public ItemWoodenMinecartChest(int par2)
{
super();
this.maxStackSize = 1;
this.minecartType = par2;
this.setCreativeTab(CreativeTabs.tabTransport);
this.setWeight(EnumWeight.HEAVY);
this.setSize(EnumSize.HUGE);
}
示例14: isItemValid
import com.bioxx.tfc.api.Enums.EnumSize; //导入依赖的package包/类
@Override
protected boolean isItemValid(TileEntity tileEntity, ItemStack itemStack)
{
IInventory inventory = (IInventory)tileEntity;
Class<?> cls = tileEntity.getClass();
if(cls == TEBarrel.class)
return new SlotChest(inventory, 0, 0, 0).setSize(EnumSize.LARGE).addItemException(ContainerChestTFC.getExceptions()).isItemValid(itemStack);
if(cls == TEVessel.class)
return new SlotChest(inventory, 0, 0, 0).setSize(EnumSize.MEDIUM).addItemException(ContainerChestTFC.getExceptions()).isItemValid(itemStack);
return false;
}
示例15: ItemHeveaLog
import com.bioxx.tfc.api.Enums.EnumSize; //导入依赖的package包/类
public ItemHeveaLog()
{
super();
this.setUnlocalizedName("Hevea Log");
this.setMaxDamage(0);
this.setCreativeTab(TFCTabs.TFC_MATERIALS);
this.setWeight(EnumWeight.MEDIUM);
this.setSize(EnumSize.MEDIUM);
}