MCEntity Импорт класса 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 at the very top of the file.
import crafttweaker. api. entity. MCEntity ;
Methods Return Type: boolean
MCEntity. addTag ( tag as string ) as boolean
Параметр Тип Description tag string No Description Provided
Return Type: void
MCEntity. addVelocity ( x as double , y as double , z as double ) as void
Параметр Тип Description x double No Description Provided y double No Description Provided z double No Description Provided
Return Type: void
MCEntity. applyEntityCollision ( entityIn as MCEntity ) as void
Параметр Тип Description entityIn MCEntity No Description Provided
Return Type: boolean
MCEntity. canSwim ( ) as boolean
myMCEntity. canSwim ( ) ;
Return Type: void
MCEntity. changeDimension ( world as MCServerWorld ) as void
Return Type: void
MCEntity. extinguish ( ) as void
myMCEntity. extinguish ( ) ;
Return Type: void
MCEntity. forceFireTicks ( ticks as int ) as void
Параметр Тип Description ticks int No Description Provided
Return Type: void
MCEntity. forceSetPosition ( x as double , y as double , z as double ) as void
Параметр Тип Description x double No Description Provided y double No Description Provided z double No Description Provided
Return Type: int
MCEntity. getAir ( ) as int
myMCEntity. getAir ( ) ;
Return Type: float
MCEntity. getBrightness ( ) as float
myMCEntity. getBrightness ( ) ;
Return Type: MapData
MCEntity. getData ( ) as MapData
myMCEntity. getData ( ) ;
Return Type: float
MCEntity. getDistance ( entityIn as MCEntity ) as float
Параметр Тип Description entityIn MCEntity No Description Provided
Return Type: double
MCEntity. getDistanceSq ( entityIn as MCEntity ) as double
Параметр Тип Description entityIn MCEntity No Description Provided
Return Type: double
MCEntity. getDistanceSq ( x as double , y as double , z as double ) as double
Параметр Тип Description x double No Description Provided y double No Description Provided z double No Description Provided
Return Type: int
MCEntity. getEntityId ( ) as int
myMCEntity. getEntityId ( ) ;
Return Type: int
MCEntity. getFireTimer ( ) as int
myMCEntity. getFireTimer ( ) ;
Return Type: int
MCEntity. getMaxInPortalTime ( ) as int
myMCEntity. getMaxInPortalTime ( ) ;
Return Type: string
MCEntity. getName ( ) as string
myMCEntity. getName ( ) ;
Return Type: Set<string>
MCEntity. getTags ( ) as Set < string >
myMCEntity. getTags ( ) ;
Return Type: MCEntityType
MCEntity. getType ( ) as MCEntityType
myMCEntity. getType ( ) ;
Return Type: string
MCEntity. getUUID ( ) as string
myMCEntity. getUUID ( ) ;
Return Type: MCWorld
MCEntity. getWorld ( ) as MCWorld
myMCEntity. getWorld ( ) ;
Return Type: boolean
MCEntity. hasNoGravity ( ) as boolean
myMCEntity. hasNoGravity ( ) ;
Return Type: boolean
MCEntity. isEntityInRange ( entity as MCEntity , distance as double ) as boolean
Параметр Тип Description entity MCEntity No Description Provided distance double No Description Provided
Return Type: boolean
MCEntity. isImmuneToFire ( ) as boolean
myMCEntity. isImmuneToFire ( ) ;
Return Type: boolean
MCEntity. isInLava ( ) as boolean
myMCEntity. isInLava ( ) ;
Return Type: boolean
MCEntity. isInWater ( ) as boolean
myMCEntity. isInWater ( ) ;
Return Type: boolean
MCEntity. isInWaterOrBubbleColumn ( ) as boolean
myMCEntity. isInWaterOrBubbleColumn ( ) ;
isInWaterRainOrBubbleColumn Return Type: boolean
MCEntity. isInWaterRainOrBubbleColumn ( ) as boolean
myMCEntity. isInWaterRainOrBubbleColumn ( ) ;
Return Type: boolean
MCEntity. isOffsetPositionInLiquid ( x as double , y as double , z as double ) as boolean
Параметр Тип Description x double No Description Provided y double No Description Provided z double No Description Provided
Return Type: boolean
MCEntity. isOnGround ( ) as boolean
myMCEntity. isOnGround ( ) ;
Return Type: boolean
MCEntity. isSilent ( ) as boolean
myMCEntity. isSilent ( ) ;
Return Type: boolean
MCEntity. isSpectator ( ) as boolean
myMCEntity. isSpectator ( ) ;
Return Type: boolean
MCEntity. isWet ( ) as boolean
myMCEntity. isWet ( ) ;
Return Type: void
MCEntity. moveForced ( x as double , y as double , z as double ) as void
Параметр Тип Description x double No Description Provided y double No Description Provided z double No Description Provided
Return Type: void
MCEntity. onCollideWithPlayer ( entityIn as MCPlayerEntity ) as void
Return Type: void
MCEntity. onKillCommand ( ) as void
myMCEntity. onKillCommand ( ) ;
Return Type: boolean
MCEntity. onLivingFall ( distance as float , damageMultiplier as float ) as boolean
Параметр Тип Description distance float No Description Provided damageMultiplier float No Description Provided
Return Type: boolean
MCEntity. removeTag ( tag as string ) as boolean
Параметр Тип Description tag string No Description Provided
Return Type: void
MCEntity. setAir ( air as int ) as void
Параметр Тип Description air int No Description Provided
Return Type: void
MCEntity. setEntityId ( id as int ) as void
Параметр Тип Description id int No Description Provided
Return Type: void
MCEntity. setFire ( seconds as int ) as void
Параметр Тип Description seconds int No Description Provided
Return Type: void
MCEntity. setNoGravity ( noGravity as boolean ) as void
Параметр Тип Description noGravity boolean No Description Provided
Return Type: void
MCEntity. setOnGround ( grounded as boolean ) as void
Параметр Тип Description grounded boolean No Description Provided
Return Type: void
MCEntity. setPosition ( x as double , y as double , z as double ) as void
Параметр Тип Description x double No Description Provided y double No Description Provided z double No Description Provided
Return Type: void
MCEntity. setSilent ( isSilent as boolean ) as void
Параметр Тип Description isSilent boolean No Description Provided
Teleports the entity, forcing the destination to stay loaded for a short time
Return Type: void
MCEntity. teleportKeepLoaded ( x as double , y as double , z as double ) as void
Параметр Тип Description x double No Description Provided y double No Description Provided z double No Description Provided
Return Type: void
MCEntity. updateData ( data as MapData ) as void
Параметр Тип Description data MapData No Description Provided
Свойства Название Тип Имеет Getter Имеет Setter air int true true data MapData true false facingDirections Direction []true false name string true false uuid string true false world MCWorld true false