Class WrapperPlayServerDamageEvent
java.lang.Object
com.comphenix.packetwrapper.wrappers.AbstractPacket
com.comphenix.packetwrapper.wrappers.play.clientbound.WrapperPlayServerDamageEvent
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic 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
ConstructorsConstructorDescriptionConstructs a new wrapper and initialize it with a packet handle with default valuesWrapperPlayServerDamageEvent
(com.comphenix.protocol.events.PacketContainer packet) -
Method Summary
Modifier and TypeMethodDescriptionint
Retrieves the value of field 'entityId'int
Retrieves the value of field 'sourceCauseId'int
Retrieves the value of field 'sourceDirectId'Optional<org.bukkit.util.Vector>
Retrieves the value of field 'sourcePosition'int
Retrieves the value of field 'sourceTypeId'void
setEntityId
(int value) Sets the value of field 'entityId'void
setSourceCauseId
(int value) Sets the value of field 'sourceCauseId'void
setSourceDirectId
(int value) Sets the value of field 'sourceDirectId'void
setSourcePosition
(org.bukkit.util.Vector value) Sets the value of field 'sourcePosition'void
setSourceTypeId
(int value) Sets the value of field 'sourceTypeId'Methods inherited from class com.comphenix.packetwrapper.wrappers.AbstractPacket
broadcastPacket, equals, getHandle, hashCode, receivePacket, sendPacket
-
Field Details
-
TYPE
public static final com.comphenix.protocol.PacketType TYPEThe 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
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'
-