Интерфейс сущности. Used to obtain and modify information entities' data.
Entities are everything that is freely movable in the world such as players, monsters, items on the ground any many more.

Импорт пакета

Link to импорт-пакета

It might be required for you to import the package if you encounter any issues (like casting an Array), so better be safe than sorry and add the import.
import crafttweaker.entity.IEntity;

Наследование от ICommandSender

Link to наследование-от-icommandsender

IEntity наследует от ICommandSender. That means that all methods that are availabel to ICommandSender Objects also are available to IEntity Objects!

Derived Methods
  • entity.displayName
  • entity.position
  • entity.world
  • entity.server
  • entity.sendMessage(String text)
ГеттерGetterMethodReturn Type (can be null)
Геттер
air
GetterMethod
getAir()
Return Type (can be null)
int
Геттер
alive
GetterMethod
isAlive()
Return Type (can be null)
boolean
Геттер
alwaysRenderNameTag
GetterMethod
Return Type (can be null)
boolean
Геттер
armorInventory
GetterMethod
Return Type (can be null)
List<IItemStack
Геттер
canBeAttackedWithItem
GetterMethod
Return Type (can be null)
boolean
Геттер
canBeCollidedWith
GetterMethod
Return Type (can be null)
boolean
Геттер
canPassengerSteer
GetterMethod
Return Type (can be null)
boolean
Геттер
canRiderInteract
GetterMethod
Return Type (can be null)
boolean
Геттер
controllingPassenger
GetterMethod
Return Type (can be null)
IEntity
Геттер
customName
GetterMethod
getCustomName()
Return Type (can be null)
string
Геттер
definition
GetterMethod
Return Type (can be null)
IEntityDefinition
Геттер
dimension
GetterMethod
getDimension()
Return Type (can be null)
int
Геттер
doesTriggerPressurePlate
GetterMethod
Return Type (can be null)
boolean
Геттер
equipmentAndArmor
GetterMethod
Return Type (can be null)
List<IItemStack
Геттер
eyeHeight
GetterMethod
Return Type (can be null)
float
Геттер
hasCustomName
GetterMethod
Return Type (can be null)
boolean
Геттер
hasNoGravity
GetterMethod
Return Type (can be null)
boolean
Геттер
heldEquipment
GetterMethod
Return Type (can be null)
List<IItemStack
Геттер
id
GetterMethod
Return Type (can be null)
int
Геттер
immuneToFire
GetterMethod
isImmuneToFire()
Return Type (can be null)
boolean
Геттер
isBeingRidden
GetterMethod
Return Type (can be null)
boolean
Геттер
isBoss
GetterMethod
Return Type (can be null)
boolean
Геттер
isBurning
GetterMethod
Return Type (can be null)
boolean
Геттер
isGlowing
GetterMethod
Return Type (can be null)
boolean
Геттер
isImmuneToExplosions
GetterMethod
Return Type (can be null)
boolean
Геттер
isInLava
GetterMethod
Return Type (can be null)
boolean
Геттер
isInsideOpaqueBlock
GetterMethod
Return Type (can be null)
boolean
Геттер
isInvisible
GetterMethod
Return Type (can be null)
boolean
Геттер
isInvulnerable
GetterMethod
Return Type (can be null)
boolean
Геттер
isInWater
GetterMethod
Return Type (can be null)
boolean
Геттер
isLightningbolt
GetterMethod
Return Type (can be null)
boolean
Геттер
isOutsideBorder
GetterMethod
Return Type (can be null)
boolean
Геттер
isOverWater
GetterMethod
Return Type (can be null)
boolean
Геттер
isPushedByWater
GetterMethod
Return Type (can be null)
boolean
Геттер
isRiding
GetterMethod
Return Type (can be null)
boolean
Геттер
isSilent
GetterMethod
Return Type (can be null)
boolean
Геттер
isSneaking
GetterMethod
Return Type (can be null)
boolean
Геттер
isSprinting
GetterMethod
Return Type (can be null)
boolean
Геттер
lowestRidingEntity
GetterMethod
Return Type (can be null)
IEntity
Геттер
maxFallHeight
GetterMethod
Return Type (can be null)
int
Геттер
maxInPortalTime
GetterMethod
Return Type (can be null)
int
Геттер
onGround
GetterMethod
onGround()
Return Type (can be null)
boolean
Геттер
parts
GetterMethod
Return Type (can be null)
IEntity[]
Геттер
passengers
GetterMethod
getPassengers()
Return Type (can be null)
List<IEntity>
Геттер
passengersRecursive
GetterMethod
Return Type (can be null)
List<IEntity>
Геттер
portalCooldowne
GetterMethod
Return Type (can be null)
int
Геттер
position3f
GetterMethod
getPosition3f()
Return Type (can be null)
Position3f
Геттер
ridingEntity
GetterMethod
getRidingEntity()
Return Type (can be null)
IEntity
Геттер
shouldRiderSit
GetterMethod
Return Type (can be null)
boolean
Геттер
tags
GetterMethod
Return Type (can be null)
List<string>
Геттер
team
GetterMethod
Return Type (can be null)
ITeam
Геттер
wet
GetterMethod
isWet()
Return Type (can be null)
boolean
Геттер
world
GetterMethod
Return Type (can be null)
IWorld
Геттер
x
GetterMethod
getX()
Return Type (can be null)
double
Геттер
y
GetterMethod
getY()
Return Type (can be null)
double
Геттер
z
GetterMethod
getZ()
Return Type (can be null)
double
Геттер
motionX
GetterMethod
Return Type (can be null)
double
Геттер
motionY
GetterMethod
Return Type (can be null)
double
Геттер
motionZ
GetterMethod
Return Type (can be null)
double
Геттер
posX
GetterMethod
Return Type (can be null)
double
Геттер
posY
GetterMethod
Return Type (can be null)
double
Геттер
posZ
GetterMethod
Return Type (can be null)
double
Геттер
rotationYaw
GetterMethod
Return Type (can be null)
float
Геттер
rotationPitch
GetterMethod
Return Type (can be null)
float
Геттер
lookingDirection
GetterMethod
Return Type (can be null)
IVector3d
Геттер
nbt
GetterMethod
getNBT()
Return Type (can be null)
IData
Геттер
horizontalFacing
GetterMethod
gethorizontalFacing()
Return Type (can be null)
IFacing
Геттер
updateBlocked
GetterMethod
getUpdateBlocked()
Return Type (can be null)
boolean
Геттер
inPortal
GetterMethod
getInPortal()
Return Type (can be null)
boolean
Геттер
portalCounter
GetterMethod
getPortalCounter()
Return Type (can be null)
int
Геттер
lastPortalVec
GetterMethod
getLastPortalVec()
Return Type (can be null)
IVector3d
Геттер
lastPortalPos
GetterMethod
getLastPortalPos()
Return Type (can be null)
IBlockPos
Геттер
lastPortalDirection
GetterMethod
getLastPortalDirection()
Return Type (can be null)
IFacing
СеттерSetterMethodParameter Type
Сеттер
air
SetterMethod
setAir(seconds)
Parameter Type
int
Сеттер
alwaysRenderNameTag
SetterMethod
Parameter Type
boolean
Сеттер
customName
SetterMethod
setCustomName(name)
Parameter Type
string
Сеттер
dimension
SetterMethod
setDimension(id)
Parameter Type
int
Сеттер
fire
SetterMethod
setFire(seconds)
Parameter Type
int
Сеттер
hasNoGravity
SetterMethod
Parameter Type
boolean
Сеттер
id
SetterMethod
Parameter Type
int
Сеттер
isGlowing
SetterMethod
Parameter Type
boolean
Сеттер
isInvisible
SetterMethod
Parameter Type
boolean
Сеттер
isOutsideBorder
SetterMethod
Parameter Type
boolean
Сеттер
isSilent
SetterMethod
Parameter Type
boolean
Сеттер
isSneaking
SetterMethod
Parameter Type
boolean
Сеттер
isSprinting
SetterMethod
Parameter Type
boolean
Сеттер
position
SetterMethod
setPosition(pos)
Parameter Type
IBlockPos
Сеттер
rotationYaw
SetterMethod
Parameter Type
float
Сеттер
rotationPitch
SetterMethod
Parameter Type
float
Сеттер
motionX
SetterMethod
Parameter Type
double
Сеттер
motionY
SetterMethod
Parameter Type
double
Сеттер
motionZ
SetterMethod
Parameter Type
double
Сеттер
posX
SetterMethod
Parameter Type
double
Сеттер
posY
SetterMethod
Parameter Type
double
Сеттер
posZ
SetterMethod
Parameter Type
double
Сеттер
nbt
SetterMethod
setNBT(data)
Parameter Type
IData
Сеттер
team
SetterMethod
setTeam(team)
Parameter Type
ITeam
Сеттер
updateBlocked
SetterMethod
setUpdateBlocked(value)
Parameter Type
boolean
Сеттер
inPortal
SetterMethod
setInPortal(value)
Parameter Type
boolean
Сеттер
portalCounter
SetterMethod
setPortalCounter(value)
Parameter Type
int
Сеттер
lastPortalVec
SetterMethod
setLastPortalVec(vector)
Parameter Type
IVector3d
Сеттер
lastPortalPos
SetterMethod
setLastPortalPos(pos)
Parameter Type
IBlockPos
Сеттер
lastPortalDirection
SetterMethod
setLastPortalDirection(direction)
Parameter Type
IFacing
  • boolean attackEntityFrom(IDamageSource source, float amount);
  • boolean canTrample(IWorld world, IBlockDefinition block, IBlockPos pos, float fall);
  • boolean isInsideOfMaterial(IMaterial material);
  • double getDistanceSqToEntity(entity); → Returns the distance to the given Entity
  • IItemStack getPickedResult(); → Returns the item that picking up the entity would return (e.g. the item id the entity is an item or the minecart item)
  • void addTag(String tag);
  • void extinguish(); → Extinguishes the entity, if on fire
  • void onEntityUpdate();
  • void onKillCommand();
  • void onUpdate();
  • void removeTag(String tag);
  • void setDead(); → Kills the entity
  • void spawnRunningParticles();
  • void removePassengers();
  • void dismountRidingEntity();
  • boolean isOnSameTeam(IEntity other);
  • void setInWeb();
  • void doWaterSplashEffect();
  • boolean isEntityEqual(IEntity other);
  • boolean isInvulnerableTo(IDamageSource source);
  • boolean shouldRiderDismountInWater(IEntity rider)
  • boolean boolean isPassenger(IEntity entity);
  • boolean isRidingSameEntity(IEntity other);
  • IRayTraceResult getRayTrace(double blockReachDistance, float partialTicks, @Optional boolean stopOnLiquid, @Optional boolean ignoreBlockWithoutBoundingBox, @Optional(valueBoolean = true) boolean returnLastUncollidableBlock);