Examples of HeldItemMessage


Examples of net.glowstone.net.message.play.inv.HeldItemMessage

public final class HeldItemCodec implements Codec<HeldItemMessage> {
    @Override
    public HeldItemMessage decode(ByteBuf buf) throws IOException {
        int slot = buf.readShort();
        return new HeldItemMessage(slot);
    }
View Full Code Here

Examples of net.glowstone.net.message.play.inv.HeldItemMessage

    @Override
    public void setHeldItemSlot(int slot) {
        setRawHeldItemSlot(slot);

        if (getHolder() instanceof GlowPlayer) {
            ((GlowPlayer) getHolder()).getSession().send(new HeldItemMessage(slot));
        }
    }
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.