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) |
boolean |
equals(java.lang.Object o) |
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() |
int |
hashCode() |
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.IEntityDefinitionpublic java.lang.String getName()
getName in interface crafttweaker.api.entity.IEntityDefinitionpublic void addDrop(crafttweaker.api.item.IItemStack stack,
int min,
int max,
float chance)
addDrop in interface crafttweaker.api.entity.IEntityDefinitionpublic void addDrop(crafttweaker.api.item.WeightedItemStack stack,
int min,
int max)
addDrop in interface crafttweaker.api.entity.IEntityDefinitionpublic void addPlayerOnlyDrop(crafttweaker.api.item.IItemStack stack,
int min,
int max,
float chance)
addPlayerOnlyDrop in interface crafttweaker.api.entity.IEntityDefinitionpublic void addPlayerOnlyDrop(crafttweaker.api.item.WeightedItemStack stack,
int min,
int max)
addPlayerOnlyDrop in interface crafttweaker.api.entity.IEntityDefinitionpublic void removeDrop(crafttweaker.api.item.IItemStack stack)
removeDrop in interface crafttweaker.api.entity.IEntityDefinitionpublic void clearDrops()
clearDrops in interface crafttweaker.api.entity.IEntityDefinitionpublic java.util.List<crafttweaker.api.entity.IEntityDrop> getDrops()
getDrops in interface crafttweaker.api.entity.IEntityDefinitionpublic crafttweaker.api.entity.IEntity createEntity(crafttweaker.api.world.IWorld world)
createEntity in interface crafttweaker.api.entity.IEntityDefinitionpublic crafttweaker.api.entity.IEntity spawnEntity(crafttweaker.api.world.IWorld world,
crafttweaker.api.world.IBlockPos pos)
spawnEntity in interface crafttweaker.api.entity.IEntityDefinitionpublic java.util.Map<crafttweaker.api.item.IItemStack,crafttweaker.util.IntegerRange> getDropsToAdd()
getDropsToAdd in interface crafttweaker.api.entity.IEntityDefinitionpublic java.util.Map<crafttweaker.api.item.IItemStack,crafttweaker.util.IntegerRange> getDropsToAddPlayerOnly()
getDropsToAddPlayerOnly in interface crafttweaker.api.entity.IEntityDefinitionpublic java.util.List<crafttweaker.api.item.IItemStack> getDropsToRemove()
getDropsToRemove in interface crafttweaker.api.entity.IEntityDefinitionpublic boolean shouldClearDrops()
shouldClearDrops in interface crafttweaker.api.entity.IEntityDefinitionpublic java.lang.Object getInternal()
getInternal in interface crafttweaker.api.entity.IEntityDefinitionpublic java.lang.String toString()
toString in class java.lang.Objectpublic void addDropFunction(crafttweaker.api.entity.IEntityDropFunction function)
addDropFunction in interface crafttweaker.api.entity.IEntityDefinitionpublic java.util.List<crafttweaker.api.entity.IEntityDropFunction> getDropFunctions()
getDropFunctions in interface crafttweaker.api.entity.IEntityDefinitionpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object