Class WrapperPlayServerSetSlot

java.lang.Object
com.comphenix.packetwrapper.wrappers.AbstractPacket
com.comphenix.packetwrapper.wrappers.play.clientbound.WrapperPlayServerSetSlot

public class WrapperPlayServerSetSlot extends AbstractPacket
Send by server to client when an item at a specific slot in a container should be updated
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final com.comphenix.protocol.PacketType
    The packet type that is wrapped by this wrapper.

    Fields inherited from class com.comphenix.packetwrapper.wrappers.AbstractPacket

    handle
  • Constructor Summary

    Constructors
    Constructor
    Description
    Constructs a new wrapper and initialize it with a packet handle with default values
    WrapperPlayServerSetSlot(com.comphenix.protocol.events.PacketContainer packet)
    Constructors a new wrapper for the specified packet
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Retrieves the id of the container to update
    org.bukkit.inventory.ItemStack
    Retrieves the value of field 'itemStack'
    int
    Retrieves the index of the slot that should be updated
    int
    Retrieves the value of field 'stateId'
    void
    setContainerId(int value)
    Sets the id of the container to update
    void
    setItemStack(org.bukkit.inventory.ItemStack value)
    Sets the value of field 'itemStack'
    void
    setSlot(int value)
    Sets the index of the slot that should be updated
    void
    setStateId(int value)
    Sets the value of field 'stateId'

    Methods inherited from class com.comphenix.packetwrapper.wrappers.AbstractPacket

    broadcastPacket, equals, getHandle, hashCode, receivePacket, sendPacket

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • TYPE

      public static final com.comphenix.protocol.PacketType TYPE
      The packet type that is wrapped by this wrapper.
  • Constructor Details

    • WrapperPlayServerSetSlot

      public WrapperPlayServerSetSlot()
      Constructs a new wrapper and initialize it with a packet handle with default values
    • WrapperPlayServerSetSlot

      public WrapperPlayServerSetSlot(com.comphenix.protocol.events.PacketContainer packet)
      Constructors a new wrapper for the specified packet
      Parameters:
      packet - the packet to wrap
  • Method Details

    • getContainerId

      public int getContainerId()
      Retrieves the id of the container to update
      Returns:
      'containerId'
    • setContainerId

      public void setContainerId(int value)
      Sets the id of the container to update
      Parameters:
      value - New value for field 'containerId'
    • getStateId

      public int getStateId()
      Retrieves the value of field 'stateId'
      Returns:
      'stateId'
    • setStateId

      public void setStateId(int value)
      Sets the value of field 'stateId'
      Parameters:
      value - New value for field 'stateId'
    • getSlot

      public int getSlot()
      Retrieves the index of the slot that should be updated
      Returns:
      'slot'
    • setSlot

      public void setSlot(int value)
      Sets the index of the slot that should be updated
      Parameters:
      value - New value for field 'slot'
    • getItemStack

      public org.bukkit.inventory.ItemStack getItemStack()
      Retrieves the value of field 'itemStack'
      Returns:
      'itemStack'
    • setItemStack

      public void setItemStack(org.bukkit.inventory.ItemStack value)
      Sets the value of field 'itemStack'
      Parameters:
      value - New value for field 'itemStack'