Package appeng.hooks.TickHandler

Examples of appeng.hooks.TickHandler.PlayerColor


  }

  @SubscribeEvent
  public void postPlayerRender(RenderLivingEvent.Pre p)
  {
    PlayerColor player = TickHandler.instance.getPlayerColors().get( p.entity.getEntityId() );
    if ( player != null )
    {
      AEColor col = player.myColor;

      float r = 0xff & (col.mediumVariant >> 16);
View Full Code Here


      // boolean lit = ipb.isLumen( type );

      if ( pos.typeOfHit == MovingObjectType.ENTITY )
      {
        int id = pos.entityHit.getEntityId();
        PlayerColor marker = new PlayerColor( id, col, 20 * 30 );
        TickHandler.instance.getPlayerColors().put( id, marker );

        if ( pos.entityHit instanceof EntitySheep )
        {
          EntitySheep sh = (EntitySheep) pos.entityHit;
          sh.setFleeceColor( col.ordinal() );
        }

        pos.entityHit.attackEntityFrom( DamageSource.causePlayerDamage( p ), 0 );
        NetworkHandler.instance.sendToAll( marker.getPacket() );
      }
      else if ( pos.typeOfHit == MovingObjectType.BLOCK )
      {
        ForgeDirection side = ForgeDirection.getOrientation( pos.sideHit );

View Full Code Here

  }

  @Override
  public void clientPacketData(INetworkInfo network, AppEngPacket packet, EntityPlayer player)
  {
    PlayerColor pc = new PlayerColor( entityId, myColor, ticks );
    TickHandler.instance.getPlayerColors().put( entityId, pc );
  }
View Full Code Here

TOP

Related Classes of appeng.hooks.TickHandler.PlayerColor

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.