Package net.minecraft

Record Class class_8143

java.lang.Object
java.lang.Record
net.minecraft.class_8143
Record Components:
entityId -
sourceTypeId -
sourceCauseId -
sourceDirectId -
sourcePosition -
All Implemented Interfaces:
Packet<ClientPlayPacketListener>

public record class_8143(int entityId, int sourceTypeId, int sourceCauseId, int sourceDirectId, Optional<Vec3d> sourcePosition) extends Record implements Packet<ClientPlayPacketListener>
Mappings:
Namespace Name
official vw
intermediary net/minecraft/class_8143
named net/minecraft/class_8143
official a
intermediary comp_1267
named entityId
official b
intermediary comp_1268
named sourceTypeId
official c
intermediary comp_1269
named sourceCauseId
official d
intermediary comp_1270
named sourceDirectId
official e
intermediary comp_1271
named sourcePosition
  • Field Details

    • entityId

      private final int entityId
      The field for the entityId record component.
    • sourceTypeId

      private final int sourceTypeId
      The field for the sourceTypeId record component.
    • sourceCauseId

      private final int sourceCauseId
      The field for the sourceCauseId record component.
    • sourceDirectId

      private final int sourceDirectId
      The field for the sourceDirectId record component.
    • sourcePosition

      private final Optional<Vec3d> sourcePosition
      The field for the sourcePosition record component.
  • Constructor Details

    • class_8143

      public class_8143(Entity entity, DamageSource damageSource)
    • class_8143

      public class_8143(PacketByteBuf packetByteBuf)
    • class_8143

      public class_8143(int int2, int int3, int int4, int int5, Optional<Vec3d> optional)
  • Method Details

    • method_49072

      private static void method_49072(PacketByteBuf packetByteBuf, int int2)
      Mappings:
      Namespace Name Mixin selector
      official a Lvw;a(Lsm;I)V
      intermediary method_49072 Lnet/minecraft/class_8143;method_49072(Lnet/minecraft/class_2540;I)V
      named method_49072 Lnet/minecraft/class_8143;method_49072(Lnet/minecraft/network/PacketByteBuf;I)V
    • method_49075

      private static int method_49075(PacketByteBuf packetByteBuf)
      Mappings:
      Namespace Name Mixin selector
      official b Lvw;b(Lsm;)I
      intermediary method_49075 Lnet/minecraft/class_8143;method_49075(Lnet/minecraft/class_2540;)I
      named method_49075 Lnet/minecraft/class_8143;method_49075(Lnet/minecraft/network/PacketByteBuf;)I
    • write

      public void write(PacketByteBuf buf)
      Specified by:
      write in interface Packet<ClientPlayPacketListener>
      Mappings:
      Namespace Name Mixin selector
      official a Luv;a(Lsm;)V
      intermediary method_11052 Lnet/minecraft/class_2596;method_11052(Lnet/minecraft/class_2540;)V
      named write Lnet/minecraft/network/packet/Packet;write(Lnet/minecraft/network/PacketByteBuf;)V
    • apply

      public void apply(ClientPlayPacketListener clientPlayPacketListener)
      Specified by:
      apply in interface Packet<ClientPlayPacketListener>
      Mappings:
      Namespace Name Mixin selector
      official a Lvw;a(Luy;)V
      intermediary method_49074 Lnet/minecraft/class_8143;method_49074(Lnet/minecraft/class_2602;)V
      named apply Lnet/minecraft/class_8143;apply(Lnet/minecraft/network/listener/ClientPlayPacketListener;)V
    • method_49071

      public DamageSource method_49071(World world)
      Mappings:
      Namespace Name Mixin selector
      official a Lvw;a(Lclt;)Lbee;
      intermediary method_49071 Lnet/minecraft/class_8143;method_49071(Lnet/minecraft/class_1937;)Lnet/minecraft/class_1282;
      named method_49071 Lnet/minecraft/class_8143;method_49071(Lnet/minecraft/world/World;)Lnet/minecraft/entity/damage/DamageSource;
    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object object)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      object - the object with which to compare
      Returns:
      true if this object is the same as the object argument; false otherwise.
    • entityId

      public int entityId()
      Returns the value of the entityId record component.
      Returns:
      the value of the entityId record component
    • sourceTypeId

      public int sourceTypeId()
      Returns the value of the sourceTypeId record component.
      Returns:
      the value of the sourceTypeId record component
    • sourceCauseId

      public int sourceCauseId()
      Returns the value of the sourceCauseId record component.
      Returns:
      the value of the sourceCauseId record component
    • sourceDirectId

      public int sourceDirectId()
      Returns the value of the sourceDirectId record component.
      Returns:
      the value of the sourceDirectId record component
    • sourcePosition

      public Optional<Vec3d> sourcePosition()
      Returns the value of the sourcePosition record component.
      Returns:
      the value of the sourcePosition record component