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

    if (!registered) registered = IPylonRegistry.registerUser(worldObj, getCoordSet());
  }