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.forge.api.event.entity.teleport.EntityTeleportEvent;

Extends

EntityTeleportEvent extends EntityEvent.

Members

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

Return Type: bool

cancelable() as bool
script.zs
// EntityTeleportEvent.cancelable() as bool;
myEntityTeleportEvent.cancelable();

Return Type: bool

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.hasResult as bool
myEntityTeleportEvent.hasResult

Return Type: bool

hasResult() as bool
script.zs
// EntityTeleportEvent.hasResult() as bool;
myEntityTeleportEvent.hasResult();

Return Type: bool

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.result as Result
myEntityTeleportEvent.result

Return Type: EventResult

Setter
script.zs
// EntityTeleportEvent.result = (result as Result);
myEntityTeleportEvent.result = myResult;

Parameters:

result Type: EventResult
result() as Result
script.zs
// EntityTeleportEvent.result() as Result;
myEntityTeleportEvent.result();

Return Type: EventResult

result(result as Result)
script.zs
// EntityTeleportEvent.result(result as Result);
myEntityTeleportEvent.result(myResult);

Parameters:

result Type: EventResult
setAllow()
sets the event's result to allow
script.zs
// EntityTeleportEvent.setAllow();
myEntityTeleportEvent.setAllow();
setDefault()
sets the event's result to default
script.zs
// EntityTeleportEvent.setDefault();
myEntityTeleportEvent.setDefault();
setDeny()
sets the event's result to deny
script.zs
// EntityTeleportEvent.setDeny();
myEntityTeleportEvent.setDeny();
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