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
ParameterTypeDescription
tagstringNo Description Provided

addVelocity

Return Type: void

MCEntity.addVelocity(x as double, y as double, z as double) as void
ParameterTypeDescription
xdoubleNo Description Provided
ydoubleNo Description Provided
zdoubleNo Description Provided

applyEntityCollision

Return Type: void

MCEntity.applyEntityCollision(entityIn as MCEntity) as void
ParameterTypeDescription
entityInMCEntityNo 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
ParameterTypeDescription
ticksintNo Description Provided

forceSetPosition

Return Type: void

MCEntity.forceSetPosition(x as double, y as double, z as double) as void
ParameterTypeDescription
xdoubleNo Description Provided
ydoubleNo Description Provided
zdoubleNo Description Provided

getBrightness

Return Type: float

MCEntity.getBrightness() as float
myMCEntity.getBrightness();

getDistance

Return Type: float

MCEntity.getDistance(entityIn as MCEntity) as float
ParameterTypeDescription
entityInMCEntityNo Description Provided

getDistanceSq

Return Type: double

MCEntity.getDistanceSq(entityIn as MCEntity) as double
ParameterTypeDescription
entityInMCEntityNo Description Provided

Return Type: double

MCEntity.getDistanceSq(x as double, y as double, z as double) as double
ParameterTypeDescription
xdoubleNo Description Provided
ydoubleNo Description Provided
zdoubleNo 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();

getTags

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
ParameterTypeDescription
entityMCEntityNo Description Provided
distancedoubleNo 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
ParameterTypeDescription
xdoubleNo Description Provided
ydoubleNo Description Provided
zdoubleNo 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
ParameterTypeDescription
xdoubleNo Description Provided
ydoubleNo Description Provided
zdoubleNo Description Provided

onCollideWithPlayer

Return Type: void

MCEntity.onCollideWithPlayer(entityIn as MCPlayerEntity) as void
ParameterTypeDescription
entityInMCPlayerEntityNo Description Provided

onKillCommand

Return Type: void

MCEntity.onKillCommand() as void
myMCEntity.onKillCommand();

onLivingFall

Return Type: boolean

MCEntity.onLivingFall(distance as float, damageMultiplier as float) as boolean
ParameterTypeDescription
distancefloatNo Description Provided
damageMultiplierfloatNo Description Provided

removeTag

Return Type: boolean

MCEntity.removeTag(tag as string) as boolean
ParameterTypeDescription
tagstringNo Description Provided

setEntityId

Return Type: void

MCEntity.setEntityId(id as int) as void
ParameterTypeDescription
idintNo Description Provided

setFire

Return Type: void

MCEntity.setFire(seconds as int) as void
ParameterTypeDescription
secondsintNo Description Provided

setNoGravity

Return Type: void

MCEntity.setNoGravity(noGravity as boolean) as void
ParameterTypeDescription
noGravitybooleanNo Description Provided

setOnGround

Return Type: void

MCEntity.setOnGround(grounded as boolean) as void
ParameterTypeDescription
groundedbooleanNo Description Provided

setPosition

Return Type: void

MCEntity.setPosition(x as double, y as double, z as double) as void
ParameterTypeDescription
xdoubleNo Description Provided
ydoubleNo Description Provided
zdoubleNo Description Provided

setSilent

Return Type: void

MCEntity.setSilent(isSilent as boolean) as void
ParameterTypeDescription
isSilentbooleanNo Description Provided

Properties

NameTypeHas GetterHas Setter
namestringtruefalse
worldMCWorldtruefalse