Search in sources :

Example 1 with EntityShadowHelper

use of am2.entities.EntityShadowHelper in project ArsMagica2 by Mithion.

the class TileEntityOtherworldAura method spawnHelper.

private void spawnHelper() {
    if (helper != null || worldObj.isRemote)
        return;
    this.helper = new EntityShadowHelper(worldObj);
    this.helper.setPosition(xCoord, yCoord + 1, zCoord);
    if (this.watchTarget != null)
        this.helper.setAltarTarget(watchTarget);
    this.worldObj.spawnEntityInWorld(helper);
    if (this.watchTarget != null) {
        this.helper.setDropoffLocation(new AMVector3(watchTarget.xCoord, watchTarget.yCoord - 2, watchTarget.zCoord));
        if (placedByUsername != null && !placedByUsername.isEmpty())
            this.helper.setMimicUser(placedByUsername);
    }
}
Also used : AMVector3(am2.api.math.AMVector3) EntityShadowHelper(am2.entities.EntityShadowHelper)

Aggregations

AMVector3 (am2.api.math.AMVector3)1 EntityShadowHelper (am2.entities.EntityShadowHelper)1