Class WrapperPlayServerDamageEvent

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

public class WrapperPlayServerDamageEvent extends AbstractPacket
  • Field Details

    • TYPE

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

    • WrapperPlayServerDamageEvent

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

      public WrapperPlayServerDamageEvent(com.comphenix.protocol.events.PacketContainer packet)
  • Method Details

    • getEntityId

      public int getEntityId()
      Retrieves the value of field 'entityId'
      Returns:
      'entityId'
    • setEntityId

      public void setEntityId(int value)
      Sets the value of field 'entityId'
      Parameters:
      value - New value for field 'entityId'
    • getSourceTypeId

      public int getSourceTypeId()
      Retrieves the value of field 'sourceTypeId'
      Returns:
      'sourceTypeId'
    • setSourceTypeId

      public void setSourceTypeId(int value)
      Sets the value of field 'sourceTypeId'
      Parameters:
      value - New value for field 'sourceTypeId'
    • getSourceCauseId

      public int getSourceCauseId()
      Retrieves the value of field 'sourceCauseId'
      Returns:
      'sourceCauseId'
    • setSourceCauseId

      public void setSourceCauseId(int value)
      Sets the value of field 'sourceCauseId'
      Parameters:
      value - New value for field 'sourceCauseId'
    • getSourceDirectId

      public int getSourceDirectId()
      Retrieves the value of field 'sourceDirectId'
      Returns:
      'sourceDirectId'
    • setSourceDirectId

      public void setSourceDirectId(int value)
      Sets the value of field 'sourceDirectId'
      Parameters:
      value - New value for field 'sourceDirectId'
    • getSourcePosition

      public Optional<org.bukkit.util.Vector> getSourcePosition()
      Retrieves the value of field 'sourcePosition'
      Returns:
      'sourcePosition'
    • setSourcePosition

      public void setSourcePosition(@Nullable org.bukkit.util.Vector value)
      Sets the value of field 'sourcePosition'
      Parameters:
      value - New value for field 'sourcePosition'