Examples of PlayerColor


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

Examples of appeng.hooks.TickHandler.PlayerColor

      // 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

Examples of appeng.hooks.TickHandler.PlayerColor

  }

  @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

Examples of com.jcloisterzone.ui.PlayerColor

    }

    public PlayerColor getPlayerColor(PlayerSlot slot) {
        try {
            ColorConfig cfg = players.getColors().get(slot.getNumber());
            return new PlayerColor(cfg);
        } catch (IndexOutOfBoundsException ex) {
            logger.warn("Too few player colors defined in config");
            return new PlayerColor();
        }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.