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.block.IBlockDefinition blockDefinition) |
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.util.math.BlockPos |
getBlockPos(crafttweaker.api.world.IBlockPos pos) |
static crafttweaker.api.block.IBlockState |
getBlockState(net.minecraft.block.state.IBlockState block) |
static net.minecraft.block.state.IBlockState |
getBlockState(crafttweaker.api.block.IBlockState block) |
static net.minecraft.inventory.Container |
getContainer(crafttweaker.api.container.IContainer container) |
static net.minecraft.creativetab.CreativeTabs |
getCreativeTabs(crafttweaker.api.creativetabs.ICreativeTab tab) |
static net.minecraft.util.DamageSource |
getDamageSource(crafttweaker.api.damage.IDamageSource source) |
static net.minecraft.entity.Entity |
getEntity(crafttweaker.api.entity.IEntity entity) |
static net.minecraft.entity.passive.EntityAnimal |
getEntityAnimal(crafttweaker.api.entity.IEntityAnimal entityAnimal) |
static net.minecraft.inventory.EntityEquipmentSlot |
getEntityEquipmentSlot(crafttweaker.api.entity.IEntityEquipmentSlot slot) |
static net.minecraft.entity.item.EntityItem |
getEntityItem(crafttweaker.api.entity.IEntityItem entityItem) |
static net.minecraft.entity.EntityLivingBase |
getEntityLivingBase(crafttweaker.api.entity.IEntityLivingBase entityLivingBase) |
static net.minecraft.item.ItemStack[] |
getExamples(crafttweaker.api.item.IIngredient ingredient) |
static net.minecraftforge.fluids.Fluid |
getFluid(crafttweaker.api.liquid.ILiquidDefinition liquidDefinition) |
static crafttweaker.api.world.IBlockPos |
getIBlockPos(net.minecraft.util.math.BlockPos pos) |
static crafttweaker.api.command.ICommand |
getICommand(net.minecraft.command.ICommand iCommand) |
static net.minecraft.command.ICommand |
getICommand(crafttweaker.api.command.ICommand command) |
static net.minecraft.command.ICommandSender |
getICommandSender(crafttweaker.api.command.ICommandSender sender) |
static crafttweaker.api.command.ICommandSender |
getICommandSender(net.minecraft.command.ICommandSender sender) |
static crafttweaker.api.container.IContainer |
getIContainer(net.minecraft.inventory.Container container) |
static crafttweaker.api.damage.IDamageSource |
getIDamageSource(net.minecraft.util.DamageSource source) |
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.entity.IEntity |
getIEntity(net.minecraft.entity.Entity entity) |
static crafttweaker.api.entity.IEntityAgeable |
getIEntityAgeable(net.minecraft.entity.EntityAgeable entityAgeable) |
static crafttweaker.api.entity.IEntityAnimal |
getIEntityAnimal(net.minecraft.entity.passive.EntityAnimal entityAnimal) |
static crafttweaker.api.entity.IEntityCreature |
getIEntityCreature(net.minecraft.entity.EntityCreature entityCreature) |
static crafttweaker.api.entity.IEntityEquipmentSlot |
getIEntityEquipmentSlot(net.minecraft.inventory.EntityEquipmentSlot slot) |
static crafttweaker.api.entity.IEntityItem |
getIEntityItem(net.minecraft.entity.item.EntityItem entityItem) |
static crafttweaker.api.entity.IEntityLiving |
getIEntityLiving(net.minecraft.entity.EntityLiving entityLiving) |
static crafttweaker.api.entity.IEntityLivingBase |
getIEntityLivingBase(net.minecraft.entity.EntityLivingBase entityLivingBase) |
static crafttweaker.api.entity.IEntityMob |
getIEntityMob(net.minecraft.entity.monster.EntityMob entityMob) |
static crafttweaker.api.entity.IEntityXp |
getIEntityXp(net.minecraft.entity.item.EntityXPOrb entityXPOrb) |
static crafttweaker.api.world.IFacing |
getIFacing(net.minecraft.util.EnumFacing sideHit) |
static crafttweaker.api.item.IIngredient |
getIIngredient(java.lang.Object ingredient)
Converts a Minecraft ingredient to a CraftTweaker ingredient.
|
static crafttweaker.api.item.IIngredient[] |
getIIngredients(java.util.List<net.minecraft.item.crafting.Ingredient> ingredientList) |
static crafttweaker.api.item.IItemStack |
getIItemStack(net.minecraft.item.ItemStack item)
Returns the CraftTweaker item stack for this item.
|
static java.util.List<crafttweaker.api.item.IItemStack> |
getIItemStackList(java.util.List<net.minecraft.item.ItemStack> drops) |
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.liquid.ILiquidDefinition |
getILiquidDefinition(net.minecraftforge.fluids.Fluid fluid) |
static crafttweaker.api.liquid.ILiquidStack |
getILiquidStack(net.minecraftforge.fluids.FluidStack stack)
Retrieves the CT liquid stack of the given stack.
|
static crafttweaker.api.block.IMaterial |
getIMaterial(net.minecraft.block.material.Material material) |
static net.minecraft.item.crafting.Ingredient |
getIngredient(crafttweaker.api.item.IIngredient ingredient) |
static crafttweaker.api.player.IPlayer |
getIPlayer(net.minecraft.entity.player.EntityPlayer player)
Converts a Minecraft player into a CraftTweaker player.
|
static crafttweaker.api.potions.IPotion |
getIPotion(net.minecraft.potion.Potion potion) |
static crafttweaker.api.potions.IPotionEffect |
getIPotionEffect(net.minecraft.potion.PotionEffect potionEffect) |
static crafttweaker.api.world.IRayTraceResult |
getIRayTraceResult(net.minecraft.util.math.RayTraceResult rayTraceResult) |
static crafttweaker.api.game.ITeam |
getITeam(net.minecraft.scoreboard.Team team) |
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 crafttweaker.api.world.IVector3d |
getIVector3d(net.minecraft.util.math.Vec3d vec3d) |
static crafttweaker.api.world.IWorld |
getIWorld(net.minecraft.world.World world) |
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.block.material.Material |
getMaterial(crafttweaker.api.block.IMaterial material) |
static net.minecraft.server.MinecraftServer |
getMCServer(crafttweaker.api.server.IServer server) |
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 net.minecraft.potion.Potion |
getPotion(crafttweaker.api.potions.IPotion potion) |
static net.minecraft.potion.PotionEffect |
getPotionEffect(crafttweaker.api.potions.IPotionEffect potionEffect) |
static net.minecraft.util.math.RayTraceResult |
getRayTraceResult(crafttweaker.api.world.IRayTraceResult rayTraceResult) |
static net.minecraft.scoreboard.Team |
getTeam(crafttweaker.api.game.ITeam team) |
static net.minecraft.util.math.Vec3d |
getVec3d(crafttweaker.api.world.IVector3d vector3d) |
static java.util.List<crafttweaker.api.item.WeightedItemStack> |
getWeightedItemStackList(java.util.List<net.minecraft.item.ItemStack> drops) |
static net.minecraft.world.World |
getWorld(crafttweaker.api.world.IWorld world) |
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) |
static crafttweaker.api.item.IIngredient |
mergeIngredients(crafttweaker.api.item.IIngredient... ingredients) |
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.minecraft.block.Block getBlock(crafttweaker.api.block.IBlockDefinition blockDefinition)
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.liquid.ILiquidStack getILiquidStack(net.minecraftforge.fluids.FluidStack stack)
stack
- MCF liquid stackpublic 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.item.IIngredient mergeIngredients(crafttweaker.api.item.IIngredient... ingredients)
public static net.minecraft.item.crafting.Ingredient getIngredient(crafttweaker.api.item.IIngredient ingredient)
public static crafttweaker.api.world.IWorld getWorldByID(int id)
public static crafttweaker.api.world.IWorld getIWorld(net.minecraft.world.World world)
public static net.minecraft.world.World getWorld(crafttweaker.api.world.IWorld world)
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)
public static crafttweaker.api.block.IBlockState getBlockState(net.minecraft.block.state.IBlockState block)
public static net.minecraft.block.state.IBlockState getBlockState(crafttweaker.api.block.IBlockState block)
public static crafttweaker.api.entity.IEntity getIEntity(net.minecraft.entity.Entity entity)
public static crafttweaker.api.entity.IEntityXp getIEntityXp(net.minecraft.entity.item.EntityXPOrb entityXPOrb)
public static crafttweaker.api.entity.IEntityItem getIEntityItem(net.minecraft.entity.item.EntityItem entityItem)
public static net.minecraft.entity.Entity getEntity(crafttweaker.api.entity.IEntity entity)
public static crafttweaker.api.entity.IEntityLivingBase getIEntityLivingBase(net.minecraft.entity.EntityLivingBase entityLivingBase)
public static crafttweaker.api.entity.IEntityLiving getIEntityLiving(net.minecraft.entity.EntityLiving entityLiving)
public static crafttweaker.api.entity.IEntityCreature getIEntityCreature(net.minecraft.entity.EntityCreature entityCreature)
public static crafttweaker.api.entity.IEntityAgeable getIEntityAgeable(net.minecraft.entity.EntityAgeable entityAgeable)
public static crafttweaker.api.entity.IEntityAnimal getIEntityAnimal(net.minecraft.entity.passive.EntityAnimal entityAnimal)
public static crafttweaker.api.entity.IEntityMob getIEntityMob(net.minecraft.entity.monster.EntityMob entityMob)
public static crafttweaker.api.world.IBlockPos getIBlockPos(net.minecraft.util.math.BlockPos pos)
public static net.minecraft.util.math.BlockPos getBlockPos(crafttweaker.api.world.IBlockPos pos)
public static crafttweaker.api.game.ITeam getITeam(net.minecraft.scoreboard.Team team)
public static net.minecraft.scoreboard.Team getTeam(crafttweaker.api.game.ITeam team)
public static crafttweaker.api.damage.IDamageSource getIDamageSource(net.minecraft.util.DamageSource source)
public static net.minecraft.util.DamageSource getDamageSource(crafttweaker.api.damage.IDamageSource source)
public static crafttweaker.api.block.IMaterial getIMaterial(net.minecraft.block.material.Material material)
public static net.minecraft.block.material.Material getMaterial(crafttweaker.api.block.IMaterial material)
public static net.minecraft.entity.passive.EntityAnimal getEntityAnimal(crafttweaker.api.entity.IEntityAnimal entityAnimal)
public static crafttweaker.api.entity.IEntityEquipmentSlot getIEntityEquipmentSlot(net.minecraft.inventory.EntityEquipmentSlot slot)
public static net.minecraft.inventory.EntityEquipmentSlot getEntityEquipmentSlot(crafttweaker.api.entity.IEntityEquipmentSlot slot)
public static net.minecraft.entity.EntityLivingBase getEntityLivingBase(crafttweaker.api.entity.IEntityLivingBase entityLivingBase)
public static crafttweaker.api.potions.IPotion getIPotion(net.minecraft.potion.Potion potion)
public static net.minecraft.potion.Potion getPotion(crafttweaker.api.potions.IPotion potion)
public static crafttweaker.api.potions.IPotionEffect getIPotionEffect(net.minecraft.potion.PotionEffect potionEffect)
public static net.minecraft.potion.PotionEffect getPotionEffect(crafttweaker.api.potions.IPotionEffect potionEffect)
public static crafttweaker.api.item.IIngredient[] getIIngredients(java.util.List<net.minecraft.item.crafting.Ingredient> ingredientList)
public static net.minecraft.entity.item.EntityItem getEntityItem(crafttweaker.api.entity.IEntityItem entityItem)
public static crafttweaker.api.world.IRayTraceResult getIRayTraceResult(net.minecraft.util.math.RayTraceResult rayTraceResult)
public static net.minecraft.util.math.RayTraceResult getRayTraceResult(crafttweaker.api.world.IRayTraceResult rayTraceResult)
public static crafttweaker.api.container.IContainer getIContainer(net.minecraft.inventory.Container container)
public static net.minecraft.inventory.Container getContainer(crafttweaker.api.container.IContainer container)
public static crafttweaker.api.world.IFacing getIFacing(net.minecraft.util.EnumFacing sideHit)
public static net.minecraft.creativetab.CreativeTabs getCreativeTabs(crafttweaker.api.creativetabs.ICreativeTab tab)
public static net.minecraft.command.ICommandSender getICommandSender(crafttweaker.api.command.ICommandSender sender)
public static crafttweaker.api.command.ICommandSender getICommandSender(net.minecraft.command.ICommandSender sender)
public static crafttweaker.api.command.ICommand getICommand(net.minecraft.command.ICommand iCommand)
public static net.minecraft.command.ICommand getICommand(crafttweaker.api.command.ICommand command)
public static net.minecraft.server.MinecraftServer getMCServer(crafttweaker.api.server.IServer server)
public static net.minecraft.util.math.Vec3d getVec3d(crafttweaker.api.world.IVector3d vector3d)
public static crafttweaker.api.world.IVector3d getIVector3d(net.minecraft.util.math.Vec3d vec3d)
public static java.util.List<crafttweaker.api.item.IItemStack> getIItemStackList(java.util.List<net.minecraft.item.ItemStack> drops)
public static java.util.List<crafttweaker.api.item.WeightedItemStack> getWeightedItemStackList(java.util.List<net.minecraft.item.ItemStack> drops)
public static net.minecraftforge.fluids.Fluid getFluid(crafttweaker.api.liquid.ILiquidDefinition liquidDefinition)
public static crafttweaker.api.liquid.ILiquidDefinition getILiquidDefinition(net.minecraftforge.fluids.Fluid fluid)