EnderEntityTeleportEvent

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.EnderEntityTeleportEvent;

Extends

EnderEntityTeleportEvent extends EntityTeleportEvent.

Implements

EnderEntityTeleportEvent implements the following interfaces:

ICancellableEvent

Listening to the event

This event can be listened to like so:

script.zs
events.register<crafttweaker.neoforge.api.event.entity.teleport.EnderEntityTeleportEvent>(event => {
println("EnderEntityTeleportEvent ran!");
});

Members

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

Return Type: bool

Getter
script.zs
// EnderEntity.canceled as bool
event.canceled

Return Type: bool

Setter
script.zs
// EnderEntity.canceled = (cancel as bool);
event.canceled = myBool;

Parameters:

cancel Type: bool
Setter
script.zs
// EnderEntity.canceled = (cancel as bool);
event.canceled = myBool;

Parameters:

cancel Type: bool
canceled() as bool
script.zs
// EnderEntity.canceled() as bool;
event.canceled();

Return Type: bool

canceled(cancel as bool)
script.zs
// EnderEntity.canceled(cancel as bool);
event.canceled(myBool);

Parameters:

cancel Type: bool
canceled() as bool
script.zs
// EnderEntity.canceled() as bool;
event.canceled();

Return Type: bool

canceled(cancel as bool)
script.zs
// EnderEntity.canceled(cancel as bool);
event.canceled(myBool);

Parameters:

cancel Type: bool
Getter
script.zs
// EnderEntity.entity as LivingEntity
event.entity

Return Type: LivingEntity

Getter
script.zs
// EnderEntity.prev as Vec3
event.prev

Return Type: Vec3

Getter
script.zs
// EnderEntity.prevX as double
event.prevX

Return Type: double

Getter
script.zs
// EnderEntity.prevY as double
event.prevY

Return Type: double

Getter
script.zs
// EnderEntity.prevZ as double
event.prevZ

Return Type: double

Getter
script.zs
// EnderEntity.target as Vec3
event.target

Return Type: Vec3

Getter
script.zs
// EnderEntity.targetX as double
event.targetX

Return Type: double

Setter
script.zs
// EnderEntity.targetX = (targetX as double);
event.targetX = myDouble;

Parameters:

targetX Type: double
Getter
script.zs
// EnderEntity.targetY as double
event.targetY

Return Type: double

Setter
script.zs
// EnderEntity.targetY = (targetY as double);
event.targetY = myDouble;

Parameters:

targetY Type: double
Getter
script.zs
// EnderEntity.targetZ as double
event.targetZ

Return Type: double

Setter
script.zs
// EnderEntity.targetZ = (targetZ as double);
event.targetZ = myDouble;

Parameters:

targetZ Type: double