public class CraftTweakerMC
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static crafttweaker.api.world.IBiome[] |
biomes |
static java.util.Map<java.lang.String,crafttweaker.api.creativetabs.ICreativeTab> |
creativeTabs |
Modifier and Type | Method and Description |
---|---|
static crafttweaker.api.block.IBlock |
getBlock(net.minecraft.block.Block block,
int meta)
Returns an instance of the given block.
|
static net.minecraft.block.Block |
getBlock(crafttweaker.api.block.IBlock block) |
static crafttweaker.api.block.IBlock |
getBlock(net.minecraft.world.IBlockAccess blocks,
int x,
int y,
int z)
Retrieves the block at the given position.
|
static net.minecraft.block.Block |
getBlock(crafttweaker.api.item.IItemStack itemStack)
Retrieves the block from an item stack.
|
static crafttweaker.api.block.IBlock |
getBlockAnyMeta(net.minecraft.block.Block block)
Returns an instance of the given block.
|
static crafttweaker.api.block.IBlockDefinition |
getBlockDefinition(net.minecraft.block.Block block)
Retrieves the block definition for the given block.
|
static net.minecraft.item.ItemStack[] |
getExamples(crafttweaker.api.item.IIngredient ingredient) |
static crafttweaker.api.data.IData |
getIData(net.minecraft.nbt.NBTBase nbt)
Converts a Minecraft NBT to an IData instance.
|
static crafttweaker.api.data.IData |
getIDataModifyable(net.minecraft.nbt.NBTBase nbt)
Converts a Minecraft NBT to a modifyable IData instance.
|
static crafttweaker.api.item.IIngredient |
getIIngredient(java.lang.Object ingredient)
Converts a Minecraft ingredient to a CraftTweaker ingredient.
|
static crafttweaker.api.item.IItemStack |
getIItemStack(net.minecraft.item.ItemStack item)
Returns the CraftTweaker item stack for this item.
|
static crafttweaker.api.item.IItemStack[] |
getIItemStacks(net.minecraft.item.ItemStack... items)
Converts an array of minecraft item stacks into an array of crafttweaker
item stacks.
|
static crafttweaker.api.item.IItemStack[] |
getIItemStacks(java.util.List<net.minecraft.item.ItemStack> items)
Converts a list of minecraft item stacks into an array of crafttweaker
item stacks.
|
static crafttweaker.api.item.IItemStack |
getIItemStackWildcard(net.minecraft.item.Item item,
int amount)
Constructs an item stack with wildcard damage.
|
static crafttweaker.api.item.IItemStack |
getIItemStackWildcardSize(net.minecraft.item.Item item,
int meta)
Constructs an item stack with wildcard size.
|
static crafttweaker.api.item.IItemStack |
getIItemStackWildcardSize(net.minecraft.item.ItemStack item)
Constructs an item stack with wildcard size.
|
static crafttweaker.api.player.IPlayer |
getIPlayer(net.minecraft.entity.player.EntityPlayer player)
Converts a Minecraft player into a CraftTweaker player.
|
static net.minecraft.item.ItemStack |
getItemStack(crafttweaker.api.item.IIngredient ingredient)
Returns the Minecraft ingredient for this ingredient.
|
static net.minecraft.item.ItemStack |
getItemStack(crafttweaker.api.item.IItemStack item)
Returns the Minecraft item for this CraftTweaker item.
|
static crafttweaker.api.item.IItemStack |
getItemStack(net.minecraft.item.Item item,
int amount,
int damage)
Constructs an item stack with given item, damage and amount.
|
static net.minecraft.item.ItemStack[] |
getItemStacks(crafttweaker.api.item.IItemStack... items)
Converts an array of crafttweaker item stacks into an array of minecraft
item stacks.
|
static net.minecraft.item.ItemStack[] |
getItemStacks(java.util.List<crafttweaker.api.item.IItemStack> items)
Converts a list of crafttweaker item stacks into an array of minecraft
item stacks.
|
static net.minecraftforge.fluids.FluidStack |
getLiquidStack(crafttweaker.api.liquid.ILiquidStack stack)
Retrieves the internal fluid stack of the given stack.
|
static net.minecraftforge.fluids.FluidStack[] |
getLiquidStacks(crafttweaker.api.liquid.ILiquidStack[] stacks)
Converts an array of MT liquid stacks into an array of MCF fluid stacks
|
static net.minecraft.nbt.NBTBase |
getNBT(crafttweaker.api.data.IData data)
Converts an IData instance to an NBT value.
|
static net.minecraft.nbt.NBTTagCompound |
getNBTCompound(crafttweaker.api.data.IData data)
Converts an IData instance to an NBT Tag compound.
|
static crafttweaker.api.oredict.IOreDictEntry |
getOreDict(java.lang.String name)
Gets the ore dictionary entry with the given name.
|
static crafttweaker.api.oredict.IOreDictEntry |
getOreDictEntryFromArray(java.util.List array) |
static net.minecraft.entity.player.EntityPlayer |
getPlayer(crafttweaker.api.player.IPlayer player)
Converts a CraftTweaker player into a Minecraft player.
|
static crafttweaker.api.world.IWorld |
getWorldByID(int id) |
static boolean |
matches(crafttweaker.api.item.IItemStack iitem,
net.minecraft.item.ItemStack stack) |
static boolean |
matches(crafttweaker.api.item.IItemStack iitem,
net.minecraft.item.ItemStack stack,
boolean wildcardsize) |
static boolean |
matchesExact(crafttweaker.api.item.IItemStack item,
net.minecraft.item.ItemStack stack) |
public static final crafttweaker.api.world.IBiome[] biomes
public static final java.util.Map<java.lang.String,crafttweaker.api.creativetabs.ICreativeTab> creativeTabs
public static net.minecraft.item.ItemStack getItemStack(crafttweaker.api.item.IItemStack item)
item
- crafttweaker item stackpublic static net.minecraft.item.ItemStack getItemStack(crafttweaker.api.item.IIngredient ingredient)
ingredient
- item ingredientpublic static crafttweaker.api.item.IItemStack getIItemStack(net.minecraft.item.ItemStack item)
item
- minecraft item stackpublic static crafttweaker.api.item.IItemStack getIItemStackWildcardSize(net.minecraft.item.ItemStack item)
item
- minecraft item stackpublic static crafttweaker.api.item.IItemStack getIItemStackWildcardSize(net.minecraft.item.Item item, int meta)
item
- meta
- public static crafttweaker.api.item.IItemStack getIItemStackWildcard(net.minecraft.item.Item item, int amount)
item
- stack itemamount
- stack sizepublic static net.minecraft.item.ItemStack[] getExamples(crafttweaker.api.item.IIngredient ingredient)
public static crafttweaker.api.item.IItemStack getItemStack(net.minecraft.item.Item item, int amount, int damage)
item
- stack itemdamage
- stack damageamount
- stack amountpublic static net.minecraft.item.ItemStack[] getItemStacks(crafttweaker.api.item.IItemStack... items)
items
- minetweker item stackspublic static net.minecraft.item.ItemStack[] getItemStacks(java.util.List<crafttweaker.api.item.IItemStack> items)
items
- crafttweaker itemspublic static crafttweaker.api.item.IItemStack[] getIItemStacks(net.minecraft.item.ItemStack... items)
items
- minecraft item stackspublic static crafttweaker.api.item.IItemStack[] getIItemStacks(java.util.List<net.minecraft.item.ItemStack> items)
items
- minecraft item stackspublic static crafttweaker.api.oredict.IOreDictEntry getOreDict(java.lang.String name)
name
- ore entry namepublic static crafttweaker.api.player.IPlayer getIPlayer(net.minecraft.entity.player.EntityPlayer player)
player
- minecraft playerpublic static net.minecraft.entity.player.EntityPlayer getPlayer(crafttweaker.api.player.IPlayer player)
player
- crafttweaker playerpublic static crafttweaker.api.data.IData getIData(net.minecraft.nbt.NBTBase nbt)
nbt
- nbt datapublic static crafttweaker.api.data.IData getIDataModifyable(net.minecraft.nbt.NBTBase nbt)
nbt
- nbt datapublic static net.minecraft.nbt.NBTBase getNBT(crafttweaker.api.data.IData data)
data
- IData valuepublic static net.minecraft.nbt.NBTTagCompound getNBTCompound(crafttweaker.api.data.IData data)
data
- IData valuepublic static crafttweaker.api.block.IBlock getBlock(net.minecraft.world.IBlockAccess blocks, int x, int y, int z)
blocks
- block accessx
- block x positiony
- block y positionz
- block z positionpublic static crafttweaker.api.block.IBlockDefinition getBlockDefinition(net.minecraft.block.Block block)
block
- block objectpublic static crafttweaker.api.block.IBlock getBlockAnyMeta(net.minecraft.block.Block block)
block
- MC block definitionpublic static crafttweaker.api.block.IBlock getBlock(net.minecraft.block.Block block, int meta)
block
- MC block definitionmeta
- block meta valuepublic static net.minecraft.block.Block getBlock(crafttweaker.api.item.IItemStack itemStack)
itemStack
- public static net.minecraft.block.Block getBlock(crafttweaker.api.block.IBlock block)
public static net.minecraftforge.fluids.FluidStack getLiquidStack(crafttweaker.api.liquid.ILiquidStack stack)
stack
- MT liquid stackpublic static net.minecraftforge.fluids.FluidStack[] getLiquidStacks(crafttweaker.api.liquid.ILiquidStack[] stacks)
public static crafttweaker.api.oredict.IOreDictEntry getOreDictEntryFromArray(java.util.List array)
public static crafttweaker.api.item.IIngredient getIIngredient(java.lang.Object ingredient)
ingredient
- minecraft ingredientpublic static crafttweaker.api.world.IWorld getWorldByID(int id)
public static boolean matches(crafttweaker.api.item.IItemStack iitem, net.minecraft.item.ItemStack stack, boolean wildcardsize)
public static boolean matches(crafttweaker.api.item.IItemStack iitem, net.minecraft.item.ItemStack stack)
public static boolean matchesExact(crafttweaker.api.item.IItemStack item, net.minecraft.item.ItemStack stack)