Class ClientboundDamageEventPacket
java.lang.Object
org.geysermc.mcprotocollib.protocol.packet.ingame.clientbound.entity.ClientboundDamageEventPacket
- All Implemented Interfaces:
Packet,MinecraftPacket
-
Constructor Summary
ConstructorsConstructorDescriptionClientboundDamageEventPacket(int entityId, int sourceTypeId, int sourceCauseId, int sourceDirectId, @Nullable org.cloudburstmc.math.vector.Vector3d sourcePosition) ClientboundDamageEventPacket(io.netty.buffer.ByteBuf in, MinecraftCodecHelper helper) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanintintint@Nullable org.cloudburstmc.math.vector.Vector3dintinthashCode()voidserialize(io.netty.buffer.ByteBuf out, MinecraftCodecHelper helper) @NonNull StringtoString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.geysermc.mcprotocollib.network.packet.Packet
isPriority
-
Constructor Details
-
ClientboundDamageEventPacket
-
ClientboundDamageEventPacket
public ClientboundDamageEventPacket(int entityId, int sourceTypeId, int sourceCauseId, int sourceDirectId, @Nullable org.cloudburstmc.math.vector.Vector3d sourcePosition)
-
-
Method Details
-
serialize
- Specified by:
serializein interfaceMinecraftPacket
-
getEntityId
public int getEntityId() -
getSourceTypeId
public int getSourceTypeId() -
getSourceCauseId
public int getSourceCauseId() -
getSourceDirectId
public int getSourceDirectId() -
getSourcePosition
public @Nullable org.cloudburstmc.math.vector.Vector3d getSourcePosition() -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-