EntityTeleportEvent

Importing the class

If you need to reference this type directly, like when casting an Array, or as a parameter, you will need to import it. Simply add the import at the top of the file.

script.zs
import crafttweaker.neoforge.api.event.entity.teleport.EntityTeleportEvent;

Extends

EntityTeleportEvent extends EntityEvent.

Implements

EntityTeleportEvent implements the following interfaces:

ICancellableEvent

Members

cancel()
Cancels the event. Same as setCanceled(true)
script.zs
// EntityTeleportEvent.cancel();
myEntityTeleportEvent.cancel();
Getter
script.zs
// EntityTeleportEvent.canceled as bool
myEntityTeleportEvent.canceled

Return Type: bool

Setter
script.zs
// EntityTeleportEvent.canceled = (cancel as bool);
myEntityTeleportEvent.canceled = myBool;

Parameters:

cancel Type: bool
canceled() as bool
script.zs
// EntityTeleportEvent.canceled() as bool;
myEntityTeleportEvent.canceled();

Return Type: bool

canceled(cancel as bool)
script.zs
// EntityTeleportEvent.canceled(cancel as bool);
myEntityTeleportEvent.canceled(myBool);

Parameters:

cancel Type: bool
Getter
script.zs
// EntityTeleportEvent.entity as Entity
myEntityTeleportEvent.entity

Return Type: Entity

Getter
script.zs
// EntityTeleportEvent.prev as Vec3
myEntityTeleportEvent.prev

Return Type: Vec3

Getter
script.zs
// EntityTeleportEvent.prevX as double
myEntityTeleportEvent.prevX

Return Type: double

Getter
script.zs
// EntityTeleportEvent.prevY as double
myEntityTeleportEvent.prevY

Return Type: double

Getter
script.zs
// EntityTeleportEvent.prevZ as double
myEntityTeleportEvent.prevZ

Return Type: double

Getter
script.zs
// EntityTeleportEvent.target as Vec3
myEntityTeleportEvent.target

Return Type: Vec3

Getter
script.zs
// EntityTeleportEvent.targetX as double
myEntityTeleportEvent.targetX

Return Type: double

Setter
script.zs
// EntityTeleportEvent.targetX = (targetX as double);
myEntityTeleportEvent.targetX = myDouble;

Parameters:

targetX Type: double
Getter
script.zs
// EntityTeleportEvent.targetY as double
myEntityTeleportEvent.targetY

Return Type: double

Setter
script.zs
// EntityTeleportEvent.targetY = (targetY as double);
myEntityTeleportEvent.targetY = myDouble;

Parameters:

targetY Type: double
Getter
script.zs
// EntityTeleportEvent.targetZ as double
myEntityTeleportEvent.targetZ

Return Type: double

Setter
script.zs
// EntityTeleportEvent.targetZ = (targetZ as double);
myEntityTeleportEvent.targetZ = myDouble;

Parameters:

targetZ Type: double