public class MCEntityDefinition
extends java.lang.Object
implements crafttweaker.api.entity.IEntityDefinition
Constructor and Description |
---|
MCEntityDefinition(net.minecraftforge.fml.common.registry.EntityEntry entityEntry) |
Modifier and Type | Method and Description |
---|---|
void |
addDrop(crafttweaker.api.item.IItemStack stack,
int min,
int max,
float chance) |
void |
addDrop(crafttweaker.api.item.WeightedItemStack stack,
int min,
int max) |
void |
addDropFunction(crafttweaker.api.entity.IEntityDropFunction function) |
void |
addPlayerOnlyDrop(crafttweaker.api.item.IItemStack stack,
int min,
int max,
float chance) |
void |
addPlayerOnlyDrop(crafttweaker.api.item.WeightedItemStack stack,
int min,
int max) |
void |
clearDrops() |
crafttweaker.api.entity.IEntity |
createEntity(crafttweaker.api.world.IWorld world) |
java.util.List<crafttweaker.api.entity.IEntityDropFunction> |
getDropFunctions() |
java.util.List<crafttweaker.api.entity.IEntityDrop> |
getDrops() |
java.util.Map<crafttweaker.api.item.IItemStack,crafttweaker.util.IntegerRange> |
getDropsToAdd() |
java.util.Map<crafttweaker.api.item.IItemStack,crafttweaker.util.IntegerRange> |
getDropsToAddPlayerOnly() |
java.util.List<crafttweaker.api.item.IItemStack> |
getDropsToRemove() |
java.lang.String |
getId() |
java.lang.Object |
getInternal() |
java.lang.String |
getName() |
void |
removeDrop(crafttweaker.api.item.IItemStack stack) |
boolean |
shouldClearDrops() |
crafttweaker.api.entity.IEntity |
spawnEntity(crafttweaker.api.world.IWorld world,
crafttweaker.api.world.IBlockPos pos) |
java.lang.String |
toString() |
public MCEntityDefinition(net.minecraftforge.fml.common.registry.EntityEntry entityEntry)
public java.lang.String getId()
getId
in interface crafttweaker.api.entity.IEntityDefinition
public java.lang.String getName()
getName
in interface crafttweaker.api.entity.IEntityDefinition
public void addDrop(crafttweaker.api.item.IItemStack stack, int min, int max, float chance)
addDrop
in interface crafttweaker.api.entity.IEntityDefinition
public void addDrop(crafttweaker.api.item.WeightedItemStack stack, int min, int max)
addDrop
in interface crafttweaker.api.entity.IEntityDefinition
public void addPlayerOnlyDrop(crafttweaker.api.item.IItemStack stack, int min, int max, float chance)
addPlayerOnlyDrop
in interface crafttweaker.api.entity.IEntityDefinition
public void addPlayerOnlyDrop(crafttweaker.api.item.WeightedItemStack stack, int min, int max)
addPlayerOnlyDrop
in interface crafttweaker.api.entity.IEntityDefinition
public void removeDrop(crafttweaker.api.item.IItemStack stack)
removeDrop
in interface crafttweaker.api.entity.IEntityDefinition
public void clearDrops()
clearDrops
in interface crafttweaker.api.entity.IEntityDefinition
public java.util.List<crafttweaker.api.entity.IEntityDrop> getDrops()
getDrops
in interface crafttweaker.api.entity.IEntityDefinition
public crafttweaker.api.entity.IEntity createEntity(crafttweaker.api.world.IWorld world)
createEntity
in interface crafttweaker.api.entity.IEntityDefinition
public crafttweaker.api.entity.IEntity spawnEntity(crafttweaker.api.world.IWorld world, crafttweaker.api.world.IBlockPos pos)
spawnEntity
in interface crafttweaker.api.entity.IEntityDefinition
public java.util.Map<crafttweaker.api.item.IItemStack,crafttweaker.util.IntegerRange> getDropsToAdd()
getDropsToAdd
in interface crafttweaker.api.entity.IEntityDefinition
public java.util.Map<crafttweaker.api.item.IItemStack,crafttweaker.util.IntegerRange> getDropsToAddPlayerOnly()
getDropsToAddPlayerOnly
in interface crafttweaker.api.entity.IEntityDefinition
public java.util.List<crafttweaker.api.item.IItemStack> getDropsToRemove()
getDropsToRemove
in interface crafttweaker.api.entity.IEntityDefinition
public boolean shouldClearDrops()
shouldClearDrops
in interface crafttweaker.api.entity.IEntityDefinition
public java.lang.Object getInternal()
getInternal
in interface crafttweaker.api.entity.IEntityDefinition
public java.lang.String toString()
toString
in class java.lang.Object
public void addDropFunction(crafttweaker.api.entity.IEntityDropFunction function)
addDropFunction
in interface crafttweaker.api.entity.IEntityDefinition
public java.util.List<crafttweaker.api.entity.IEntityDropFunction> getDropFunctions()
getDropFunctions
in interface crafttweaker.api.entity.IEntityDefinition