Skip to content

EntityObjectWrapper

tiffit edited this page Jun 25, 2016 · 1 revision

The EntityObjectWrapper class does not contain any accessible fields.


The following methods are available:

Entity internal();

List/ getOwnPropertyNames();

String getName();

Vec3f getPosition();

Vec3i getBlockPosition();

void setPosition(BlockPos blockPos);

void setPositionAndRotation(BlockPos blockPos, double yaw, double pitch);

void setPosition(double x, double y, double z);

void setPositionAndRotation(double x, double y, double z, double yaw, double pitch);

void setRotation(float yaw, float pitch);

float getYaw();

float getPitch();

void playSound(SoundEvent sound, float volume, float pitch);

void playSound(SoundEvent sound, float volume);

void playSound(SoundEvent sound);

void addVelocity(float x, float y, float z);

void setVelocity(float x, float y, float z);

void setAlwaysRenderNameTag(boolean flag);

void setOnFire(int seconds);

void setInvisible(boolean flag);

void setSilent(boolean flag);

void mount(EntityObjectWrapper rider);

void kill();

void merge(CompoundTagWrapper tagwrap);

PlayerObjectWrapper getClosestPlayer(double distance);

static final List<EntityObjectWrapper> transform(List entities);

static final EntityObjectWrapper transform(Entity entity);


The EntityObjectWrapper class can be found here.

Talecraft Scripting Wiki

Clone this wiki locally