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);
}
}
Aggregations