/** Called from IPylonRegistery to check if it's powered again. */ @Override public void notifyPylonUpdate() { powered = IPylonRegistry.isPowered(worldObj, getCoordSet()); }
/** Used to remove itself from IPylonRegistry. */ @Override public void onBlockRemoval(World world, int x, int y, int z) { IPylonRegistry.removeUser(worldObj, getCoordSet()); }
/** Call this, or no power for you. */ @Override public void updateEntity() { if (worldObj == null) return; if (!registered) registered = IPylonRegistry.registerUser(worldObj, getCoordSet()); }