use of WayofTime.alchemicalWizardry.common.rituals.LocalStorageAlphaPact in project BloodMagic by WayofTime.
the class EntityMinorDemonGrunt method onUpdate.
/**
* Called to update the entity's position/logic.
*/
@Override
public void onUpdate() {
if (!this.enthralled) {
TileEntity tile = this.worldObj.getTileEntity(this.demonPortal.xCoord, this.demonPortal.yCoord, this.demonPortal.zCoord);
if (tile instanceof TEDemonPortal) {
((TEDemonPortal) tile).enthrallDemon(this);
this.enthralled = true;
} else if (tile instanceof IMasterRitualStone) {
IMasterRitualStone stone = (IMasterRitualStone) tile;
LocalRitualStorage stor = stone.getLocalStorage();
if (stor instanceof LocalStorageAlphaPact) {
LocalStorageAlphaPact storage = (LocalStorageAlphaPact) stor;
storage.thrallDemon(this);
}
}
}
super.onUpdate();
}
Aggregations