Package crazypants.enderio.xp

Examples of crazypants.enderio.xp.PacketGivePlayerXP


 
  @Override
  protected void actionPerformed(GuiButton b) {
    super.actionPerformed(b);
    if(b.id == XP_ID) {
      PacketHandler.INSTANCE.sendToServer(new PacketGivePlayerXP(joe, 1));
      SoundUtil.playClientSoundFX("random.orb", joe);
    } else if(b.id == XP10_ID) {
      PacketHandler.INSTANCE.sendToServer(new PacketGivePlayerXP(joe, 10));
      SoundUtil.playClientSoundFX("random.orb", joe);
    }
  }
View Full Code Here


     
      PacketDrainPlayerXP packet = new PacketDrainPlayerXP(te, targetLevel, false);
      PacketHandler.INSTANCE.sendToServer(packet);
    } else {
     
      PacketGivePlayerXP packet = new PacketGivePlayerXP(te, levels);
      PacketHandler.INSTANCE.sendToServer(packet);
    }
   
  }
View Full Code Here

TOP

Related Classes of crazypants.enderio.xp.PacketGivePlayerXP

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.