Package org.spout.vanilla.component.entity.inventory

Examples of org.spout.vanilla.component.entity.inventory.PlayerInventory.updateAll()


    getSession().send(new PlayerHeldItemChangeMessage(getOwner().add(PlayerInventory.class).getQuickbar().getSelectedSlot().getIndex()));

    // Vanilla Only, MC does not send full inventory update on world change, nor on first connect
    PlayerInventory inv = getOwner().get(PlayerInventory.class);
    if (inv != null) {
      inv.updateAll();
    }

    // TODO: Send scoreboard data here
    world.get(Sky.class).updatePlayer((Player) getOwner());
    // TODO: notify all connected players of login PacketChat 'using: server'
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.