MCEntity
This class was added by a mod with mod-id crafttweaker
. So you need to have this mod installed if you want to use this feature.
Importing the class
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
addTag
Return Type: boolean
MCEntity.addTag(tag as string) as boolean
Parameter | Type | Description |
---|
tag | string | No Description Provided |
addVelocity
Return Type: void
MCEntity.addVelocity(x as double, y as double, z as double) as void
Parameter | Type | Description |
---|
x | double | No Description Provided |
y | double | No Description Provided |
z | double | No Description Provided |
applyEntityCollision
Return Type: void
MCEntity.applyEntityCollision(entityIn as MCEntity) as void
Parameter | Type | Description |
---|
entityIn | MCEntity | No Description Provided |
canSwim
Return Type: boolean
MCEntity.canSwim() as boolean
myMCEntity.canSwim();
extinguish
Return Type: void
MCEntity.extinguish() as void
myMCEntity.extinguish();
forceFireTicks
Return Type: void
MCEntity.forceFireTicks(ticks as int) as void
Parameter | Type | Description |
---|
ticks | int | No Description Provided |
forceSetPosition
Return Type: void
MCEntity.forceSetPosition(x as double, y as double, z as double) as void
Parameter | Type | Description |
---|
x | double | No Description Provided |
y | double | No Description Provided |
z | double | No Description Provided |
getBrightness
Return Type: float
MCEntity.getBrightness() as float
myMCEntity.getBrightness();
getDistance
Return Type: float
MCEntity.getDistance(entityIn as MCEntity) as float
Parameter | Type | Description |
---|
entityIn | MCEntity | No Description Provided |
getDistanceSq
Return Type: double
MCEntity.getDistanceSq(entityIn as MCEntity) as double
Parameter | Type | Description |
---|
entityIn | MCEntity | No Description Provided |
Return Type: double
MCEntity.getDistanceSq(x as double, y as double, z as double) as double
Parameter | Type | Description |
---|
x | double | No Description Provided |
y | double | No Description Provided |
z | double | No Description Provided |
getEntityId
Return Type: int
MCEntity.getEntityId() as int
myMCEntity.getEntityId();
getFireTimer
Return Type: int
MCEntity.getFireTimer() as int
myMCEntity.getFireTimer();
getMaxInPortalTime
Return Type: int
MCEntity.getMaxInPortalTime() as int
myMCEntity.getMaxInPortalTime();
getName
Return Type: string
MCEntity.getName() as string
myMCEntity.getName();
Return Type: Set<string>
MCEntity.getTags() as Set<string>
myMCEntity.getTags();
getType
Return Type: MCEntityType
MCEntity.getType() as MCEntityType
myMCEntity.getType();
getWorld
Return Type: MCWorld
MCEntity.getWorld() as MCWorld
myMCEntity.getWorld();
hasNoGravity
Return Type: boolean
MCEntity.hasNoGravity() as boolean
myMCEntity.hasNoGravity();
isEntityInRange
Return Type: boolean
MCEntity.isEntityInRange(entity as MCEntity, distance as double) as boolean
Parameter | Type | Description |
---|
entity | MCEntity | No Description Provided |
distance | double | No Description Provided |
isImmuneToFire
Return Type: boolean
MCEntity.isImmuneToFire() as boolean
myMCEntity.isImmuneToFire();
isInLava
Return Type: boolean
MCEntity.isInLava() as boolean
myMCEntity.isInLava();
isInWater
Return Type: boolean
MCEntity.isInWater() as boolean
myMCEntity.isInWater();
isInWaterOrBubbleColumn
Return Type: boolean
MCEntity.isInWaterOrBubbleColumn() as boolean
myMCEntity.isInWaterOrBubbleColumn();
isInWaterRainOrBubbleColumn
Return Type: boolean
MCEntity.isInWaterRainOrBubbleColumn() as boolean
myMCEntity.isInWaterRainOrBubbleColumn();
isOffsetPositionInLiquid
Return Type: boolean
MCEntity.isOffsetPositionInLiquid(x as double, y as double, z as double) as boolean
Parameter | Type | Description |
---|
x | double | No Description Provided |
y | double | No Description Provided |
z | double | No Description Provided |
isOnGround
Return Type: boolean
MCEntity.isOnGround() as boolean
myMCEntity.isOnGround();
isSilent
Return Type: boolean
MCEntity.isSilent() as boolean
myMCEntity.isSilent();
isSpectator
Return Type: boolean
MCEntity.isSpectator() as boolean
myMCEntity.isSpectator();
isWet
Return Type: boolean
MCEntity.isWet() as boolean
myMCEntity.isWet();
moveForced
Return Type: void
MCEntity.moveForced(x as double, y as double, z as double) as void
Parameter | Type | Description |
---|
x | double | No Description Provided |
y | double | No Description Provided |
z | double | No Description Provided |
onCollideWithPlayer
Return Type: void
MCEntity.onCollideWithPlayer(entityIn as MCPlayerEntity) as void
onKillCommand
Return Type: void
MCEntity.onKillCommand() as void
myMCEntity.onKillCommand();
onLivingFall
Return Type: boolean
MCEntity.onLivingFall(distance as float, damageMultiplier as float) as boolean
Parameter | Type | Description |
---|
distance | float | No Description Provided |
damageMultiplier | float | No Description Provided |
removeTag
Return Type: boolean
MCEntity.removeTag(tag as string) as boolean
Parameter | Type | Description |
---|
tag | string | No Description Provided |
setEntityId
Return Type: void
MCEntity.setEntityId(id as int) as void
Parameter | Type | Description |
---|
id | int | No Description Provided |
setFire
Return Type: void
MCEntity.setFire(seconds as int) as void
Parameter | Type | Description |
---|
seconds | int | No Description Provided |
setNoGravity
Return Type: void
MCEntity.setNoGravity(noGravity as boolean) as void
Parameter | Type | Description |
---|
noGravity | boolean | No Description Provided |
setOnGround
Return Type: void
MCEntity.setOnGround(grounded as boolean) as void
Parameter | Type | Description |
---|
grounded | boolean | No Description Provided |
setPosition
Return Type: void
MCEntity.setPosition(x as double, y as double, z as double) as void
Parameter | Type | Description |
---|
x | double | No Description Provided |
y | double | No Description Provided |
z | double | No Description Provided |
setSilent
Return Type: void
MCEntity.setSilent(isSilent as boolean) as void
Parameter | Type | Description |
---|
isSilent | boolean | No Description Provided |
Properties
Name | Type | Has Getter | Has Setter |
---|
name | string | true | false |
world | MCWorld | true | false |