Class WrapperPlayServerSetCooldown

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

public class WrapperPlayServerSetCooldown extends AbstractPacket
  • Field Details

    • TYPE

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

    • WrapperPlayServerSetCooldown

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

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

    • getItem

      public org.bukkit.Material getItem()
      Retrieves the value of field 'item'
      Returns:
      'item'
    • setItem

      public void setItem(org.bukkit.Material value)
      Sets the value of field 'item'
      Parameters:
      value - New value for field 'item'
    • getDuration

      public int getDuration()
      Retrieves the value of field 'duration'
      Returns:
      'duration'
    • setDuration

      public void setDuration(int value)
      Sets the value of field 'duration'
      Parameters:
      value - New value for field 'duration'