Package appeng.api.events

Examples of appeng.api.events.LocatableEventAnnounce


  {
    super.onReady();
    if ( Platform.isServer() )
    {
      isActive = true;
      MinecraftForge.EVENT_BUS.post( new LocatableEventAnnounce( this, LocatableEvent.Register ) );
    }
  }
View Full Code Here


  @Override
  public void onChunkUnload()
  {
    super.onChunkUnload();
    MinecraftForge.EVENT_BUS.post( new LocatableEventAnnounce( this, LocatableEvent.Unregister ) );
    isActive = false;
  }
View Full Code Here

  @Override
  public void invalidate()
  {
    super.invalidate();
    MinecraftForge.EVENT_BUS.post( new LocatableEventAnnounce( this, LocatableEvent.Unregister ) );
    isActive = false;
  }
View Full Code Here

    if ( thisSide != qe && thisSide != -qe )
    {
      if ( qe != 0 )
      {
        if ( thisSide != 0 )
          MinecraftForge.EVENT_BUS.post( new LocatableEventAnnounce( this, LocatableEvent.Unregister ) );

        if ( canUseNode( -qe ) )
        {
          otherSide = qe;
          thisSide = -qe;
        }
        else if ( canUseNode( qe ) )
        {
          thisSide = qe;
          otherSide = -qe;
        }

        MinecraftForge.EVENT_BUS.post( new LocatableEventAnnounce( this, LocatableEvent.Register ) );
      }
      else
      {
        MinecraftForge.EVENT_BUS.post( new LocatableEventAnnounce( this, LocatableEvent.Unregister ) );

        otherSide = 0;
        thisSide = 0;
      }
    }
View Full Code Here

    }

    if ( getLocatableSerial() != 0 )
    {
      updateStatus( true );
      MinecraftForge.EVENT_BUS.post( new LocatableEventAnnounce( this, LocatableEvent.Unregister ) );
    }

    center.updateStatus( null, (byte) -1, updateStatus );

    for (TileQuantumBridge r : Ring)
View Full Code Here

TOP

Related Classes of appeng.api.events.LocatableEventAnnounce

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.