public interface IEntity<T extends net.minecraft.entity.Entity>
| Modifier and Type | Method and Description |
|---|---|
void |
clearStoredData()
Remove all stored data
|
void |
clearTempData()
Remove all tempdata
|
void |
despawn()
Despawns this entity.
|
void |
dropItem(IItemStack item) |
void |
extinguish()
Removes fire from this entity
|
long |
getAge() |
INbt |
getAllNbt() |
int |
getBlockX() |
int |
getBlockY() |
int |
getBlockZ() |
int |
getDimension() |
int |
getEntityId() |
double |
getHeight() |
T |
getMCEntity() |
IPos |
getMotion() |
double |
getMotionX() |
double |
getMotionY() |
double |
getMotionZ() |
IEntity |
getMount() |
INbt |
getNbt() |
INbt |
getNbtOptional() |
float |
getPitch() |
IPos |
getPosition() |
IEntity |
getRider() |
float |
getRotation() |
java.lang.Object |
getStoredData(java.lang.String key) |
IEntity[] |
getSurroundingEntities(int range) |
IEntity[] |
getSurroundingEntities(int range,
int type) |
java.lang.Object |
getTempData(java.lang.String key) |
int |
getType() |
java.lang.String |
getTypeName() |
java.lang.String |
getUniqueID() |
double |
getWidth() |
IWorld |
getWorld() |
double |
getX() |
double |
getY() |
double |
getYOffset() |
double |
getZ() |
boolean |
hasCollided() |
boolean |
hasStoredData(java.lang.String key) |
boolean |
hasTempData(java.lang.String key) |
boolean |
inFire() |
boolean |
inLava() |
boolean |
inWater() |
boolean |
isAirborne() |
boolean |
isAlive() |
boolean |
isBurning() |
boolean |
isSneaking() |
boolean |
isSprinting() |
void |
knockback(int power,
float direction) |
void |
knockback(int xpower,
int ypower,
int zpower,
float direction) |
void |
knockback(IPos pos,
float direction) |
void |
removeStoredData(java.lang.String key) |
void |
removeTempData(java.lang.String key) |
void |
setBurning(int ticks) |
void |
setImmune(int ticks) |
void |
setInvisible(boolean invisible) |
void |
setMotion(double x,
double y,
double z) |
void |
setMotion(IPos pos) |
void |
setMotionX(double x) |
void |
setMotionY(double y) |
void |
setMotionZ(double z) |
void |
setMount(IEntity entity) |
void |
setNbt(INbt nbt) |
void |
setPitch(float pitch) |
void |
setPosition(double x,
double y,
double z) |
void |
setPosition(IPos pos) |
void |
setRider(IEntity entity) |
void |
setRotation(float rotation) |
void |
setSneaking(boolean sneaking) |
void |
setSprinting(boolean sprinting) |
void |
setStoredData(java.lang.String key,
java.lang.Object value)
Stored data persists through world restart.
|
void |
setTempData(java.lang.String key,
java.lang.Object value)
Tempdata gets cleared when the entity gets unloaded or the world restarts
|
void |
setX(double x) |
void |
setY(double y) |
void |
setZ(double z) |
void |
spawnParticle(IParticle entityParticle) |
void |
storeAsClone(int tab,
java.lang.String name) |
boolean |
typeOf(int type) |
void spawnParticle(IParticle entityParticle)
int getEntityId()
java.lang.String getUniqueID()
double getYOffset()
double getWidth()
double getHeight()
double getX()
void setX(double x)
x - The entities x positiondouble getY()
void setY(double y)
y - The entities y positiondouble getZ()
void setZ(double z)
z - The entities x positiondouble getMotionX()
void setMotionX(double x)
x - The entities x motiondouble getMotionY()
void setMotionY(double y)
y - The entities y motiondouble getMotionZ()
void setMotionZ(double z)
z - The entities z motionvoid setMotion(double x,
double y,
double z)
void setMotion(IPos pos)
IPos getMotion()
boolean isAirborne()
int getBlockX()
int getBlockY()
int getBlockZ()
void setPosition(double x,
double y,
double z)
x - The x positiony - The y positionz - The z positionvoid setPosition(IPos pos)
IPos getPosition()
int getDimension()
IEntity[] getSurroundingEntities(int range)
range - The search range for entities around this entityIEntity[] getSurroundingEntities(int range, int type)
range - The search range for entities around this entitytype - The EntityType you want to findboolean isAlive()
java.lang.Object getTempData(java.lang.String key)
key - Get temp data for this keyvoid setTempData(java.lang.String key,
java.lang.Object value)
key - The key for the data storedvalue - The data storedboolean hasTempData(java.lang.String key)
key - The key thats going to be tested against the temp datavoid removeTempData(java.lang.String key)
key - The key for the temp data to be removedvoid clearTempData()
java.lang.Object getStoredData(java.lang.String key)
key - The key of the data to be returnedvoid setStoredData(java.lang.String key,
java.lang.Object value)
key - The key for the data storedvalue - The data stored. This data can be either a Number or a String. Other data is not storedboolean hasStoredData(java.lang.String key)
key - The key of the data to be checkedvoid removeStoredData(java.lang.String key)
key - The key of the data to be removedvoid clearStoredData()
long getAge()
void despawn()
boolean inWater()
boolean inLava()
boolean inFire()
boolean isBurning()
void setBurning(int ticks)
ticks - Amount of world ticks this entity will burn. 20 ticks equals 1 secondvoid extinguish()
java.lang.String getTypeName()
void dropItem(IItemStack item)
item - Item to be droppedIEntity getRider()
void setRider(IEntity entity)
entity - The entity to ride this entityIEntity getMount()
void setMount(IEntity entity)
entity - The entity this entity will mountint getType()
noppes.npcs.scripted.constants.EntityTypeboolean typeOf(int type)
type - @EntityType to checkvoid setRotation(float rotation)
rotation - The rotation to be set (0-360)float getRotation()
void setPitch(float pitch)
float getPitch()
void knockback(int power,
float direction)
power - How strong the knockback isdirection - The direction in which he flies back (0-360). Usually based on getRotation()void knockback(int xpower,
int ypower,
int zpower,
float direction)
void knockback(IPos pos, float direction)
void setImmune(int ticks)
void setInvisible(boolean invisible)
void setSneaking(boolean sneaking)
void setSprinting(boolean sprinting)
boolean hasCollided()
boolean isSneaking()
boolean isSprinting()
T getMCEntity()
INbt getNbt()
INbt getAllNbt()
void setNbt(INbt nbt)
INbt getNbtOptional()
void storeAsClone(int tab,
java.lang.String name)
IWorld getWorld()