public class EntityHelpers
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
NBTTAG_ID
The NBT tag name that is used for storing the unique name id for an entity.
|
| Constructor and Description |
|---|
EntityHelpers() |
| Modifier and Type | Method and Description |
|---|---|
static java.util.List<net.minecraft.entity.Entity> |
getEntitiesInArea(net.minecraft.world.World world,
int x,
int y,
int z,
int area)
Get the list of entities within a certain area.
|
static void |
onEntityCollided(net.minecraft.world.World world,
int x,
int y,
int z,
net.minecraft.entity.Entity entity)
This should by called when custom entities collide.
|
static boolean |
spawnEntity(net.minecraft.world.World world,
net.minecraft.entity.EntityLiving entityLiving)
Spawn the entity in the world.
|
public static final java.lang.String NBTTAG_ID
public static void onEntityCollided(net.minecraft.world.World world,
int x,
int y,
int z,
net.minecraft.entity.Entity entity)
Block.onEntityCollidedWithBlock(World, int, int, int, Entity).world - The worldx - X coordinate.y - Y coordinate.z - Z coordinate.entity - The entity that collides.public static java.util.List<net.minecraft.entity.Entity> getEntitiesInArea(net.minecraft.world.World world,
int x,
int y,
int z,
int area)
world - The world to look in.x - The center X coordinate.y - The center Y coordinate.z - The center Z coordinate.area - The radius of the area.public static boolean spawnEntity(net.minecraft.world.World world,
net.minecraft.entity.EntityLiving entityLiving)
world - The world.entityLiving - The entity to spawn.