public class TinkersConstructUtils
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static net.minecraft.creativetab.CreativeTabs |
tabBlocks
Access to the Tinkers Construct blocks tab.
|
static net.minecraft.creativetab.CreativeTabs |
tabEquipables
Access to the Tinkers Construct equipables tab.
|
static net.minecraft.creativetab.CreativeTabs |
tabMaterials
Access to the Tinkers Construct materials tab.
|
static net.minecraft.creativetab.CreativeTabs |
tabToolParts
Access to the Tinkers Construct parts tab.
|
static net.minecraft.creativetab.CreativeTabs |
tabTools
Access to the Tinkers Construct tools tab.
|
static net.minecraft.creativetab.CreativeTabs |
tabWeaponry
Access to the Tinkers Construct weapons tab.
|
| Constructor and Description |
|---|
TinkersConstructUtils() |
| Modifier and Type | Method and Description |
|---|---|
static void |
addFluxBattery(net.minecraft.item.ItemStack stack)
Adds a new FluxBatter to the list of battery modifiers in Tinkers Construct.
|
static void |
addMaterial(int id,
java.lang.String name,
java.lang.String localization,
int durability,
int miningSpeed,
int harvestLevel,
int attack,
float handleModifier,
float bowProjectileSpeed,
int bowDrawSpeed,
float projectileMass,
float projectileFragility,
java.lang.String style,
int color)
Adds a new material to the Tinkers Construct material registry.
|
static void |
addMaterialItem(int materialID,
net.minecraft.item.ItemStack stack,
int value)
Associates an Item or Block with a Tinkers Construct material.
|
static void |
addMeltingItem(java.lang.String fluidName,
net.minecraft.item.ItemStack input,
net.minecraft.item.ItemStack displayBlock,
int amount,
int temperature)
Adds a new input item or block for the smeltery.
|
static void |
addPartBuilderMaterial(int materialID,
net.minecraft.item.ItemStack stack,
int value)
Associates an Item or Block with a Tinkers Construct material.
|
static void |
addPartCastinMaterial(java.lang.String fluidName,
int materialID)
Registers a fluid as a valid casting fluid.
|
static void |
addSmelteryFuel(java.lang.String fluidName,
int temperature,
int duration)
Adds a fluid to the list of valid smeltery fuels.
|
public static net.minecraft.creativetab.CreativeTabs tabMaterials
public static net.minecraft.creativetab.CreativeTabs tabTools
public static net.minecraft.creativetab.CreativeTabs tabToolParts
public static net.minecraft.creativetab.CreativeTabs tabBlocks
public static net.minecraft.creativetab.CreativeTabs tabEquipables
public static net.minecraft.creativetab.CreativeTabs tabWeaponry
public static void addSmelteryFuel(java.lang.String fluidName,
int temperature,
int duration)
fluidName: - The fluidName of the fluid to become a smeltery fuel.temperature: - How hot this new fuel will be.duration: - How long the new fuel will last.public static void addMaterial(int id,
java.lang.String name,
java.lang.String localization,
int durability,
int miningSpeed,
int harvestLevel,
int attack,
float handleModifier,
float bowProjectileSpeed,
int bowDrawSpeed,
float projectileMass,
float projectileFragility,
java.lang.String style,
int color)
id: - A numeric ID to associate this fluid with. This is used to reference the
material in other methods such as the addMaterialItem method. The value must
be between Integer.MIN_VALUE and Integer.MAX_VALUE.name: - A name to associate with this material.localization: - A localization string used for this material. This is used in the
display name on various tool parts.durability: - A base durability value for tools of this material.miningSpeed: - A base mining speed for tools of this material.harvestLevel: - A base harvest level for tools of this material.attack: - A base attack value for tools of this material.handleModifier: - A stat modifier provided by this handle. Less than 1 will reduce
various stats, and greater than 1 will improve them. This mainly effects the
durability of the tool.bowProjectileSpeed: - A base speed for bow projectiles of this material.bowDrawSpeed: - A base draw speed for bows of this material.projectileMass: - A base mass for projectiles of this material.projectileFragility: - A base fragility of projectiles made of this material.style: - A style effect used for this material type. See EnumChatFormattingcolor: - An integer representation of an RGB color.public static void addPartCastinMaterial(java.lang.String fluidName,
int materialID)
fluidName: - The fluidName of the fluid to allow casting for.materialID: - A numeric ID that represents the material you want to be casted by
the fluid.public static void addMaterialItem(int materialID,
net.minecraft.item.ItemStack stack,
int value)
materialID: - A numeric ID that represents the material you want to associate the
Item or Block with.stack: - An ItemStack containing the Item or Block you wish to associate.value: - The value of the item being registered. Shards have a value of one.public static void addPartBuilderMaterial(int materialID,
net.minecraft.item.ItemStack stack,
int value)
materialID: - A numeric ID that represents the material you want to associate the
Item or Block with.stack: - An ItemStack containing the Item or Block you wish to associate.value: - The value of the item being registered. Shards have a value of one.public static void addMeltingItem(java.lang.String fluidName,
net.minecraft.item.ItemStack input,
net.minecraft.item.ItemStack displayBlock,
int amount,
int temperature)
fluidName: - The name of the fluid to be created by melting this item.input: - An ItemStack that will be accepted as an input for the smeltery.displayBlock: - A block to use when rendering the unmelted input inside of the
smeltery structure.amount: - The amount of the fluid to generate per input. This is in mb(milibucket).temperature: - The amount of heat required to melt the input item.public static void addFluxBattery(net.minecraft.item.ItemStack stack)
stack: - An ItemStack containing the IEnergyContainerItem.