Record Class BossBarS2CPacket.class_9488

java.lang.Object
java.lang.Record
net.minecraft.network.packet.s2c.play.BossBarS2CPacket.class_9488
Record Components:
position -
radius -
All Implemented Interfaces:
BossBarS2CPacket.Action
Enclosing class:
BossBarS2CPacket

private static record BossBarS2CPacket.class_9488(Vec3d position, int radius) extends Record implements BossBarS2CPacket.Action
Mappings:
Namespace Name
official ach$e
intermediary net/minecraft/class_2629$class_9488
named net/minecraft/network/packet/s2c/play/BossBarS2CPacket$class_9488
official a
intermediary comp_2563
named position
official b
intermediary comp_2564
named radius
  • Field Details

    • position

      private final Vec3d position
      The field for the position record component.
    • radius

      private final int radius
      The field for the radius record component.
  • Constructor Details

    • class_9488

      private class_9488(RegistryByteBuf registryByteBuf)
    • class_9488

      class_9488(Vec3d vec3d, int int2)
  • Method Details

    • getType

      public BossBarS2CPacket.Type getType()
      Specified by:
      getType in interface BossBarS2CPacket.Action
      Mappings:
      Namespace Name Mixin selector
      official a Lach$c;a()Lach$d;
      intermediary method_34105 Lnet/minecraft/class_2629$class_5882;method_34105()Lnet/minecraft/class_2629$class_5883;
      named getType Lnet/minecraft/network/packet/s2c/play/BossBarS2CPacket$Action;getType()Lnet/minecraft/network/packet/s2c/play/BossBarS2CPacket$Type;
    • accept

      public void accept(UUID uuid, BossBarS2CPacket.Consumer consumer)
      Specified by:
      accept in interface BossBarS2CPacket.Action
      Mappings:
      Namespace Name Mixin selector
      official a Lach$c;a(Ljava/util/UUID;Lach$b;)V
      intermediary method_34106 Lnet/minecraft/class_2629$class_5882;method_34106(Ljava/util/UUID;Lnet/minecraft/class_2629$class_5881;)V
      named accept Lnet/minecraft/network/packet/s2c/play/BossBarS2CPacket$Action;accept(Ljava/util/UUID;Lnet/minecraft/network/packet/s2c/play/BossBarS2CPacket$Consumer;)V
    • toPacket

      public void toPacket(RegistryByteBuf buf)
      Specified by:
      toPacket in interface BossBarS2CPacket.Action
      Mappings:
      Namespace Name Mixin selector
      official a Lach$c;a(Lwp;)V
      intermediary method_34107 Lnet/minecraft/class_2629$class_5882;method_34107(Lnet/minecraft/class_9129;)V
      named toPacket Lnet/minecraft/network/packet/s2c/play/BossBarS2CPacket$Action;toPacket(Lnet/minecraft/network/RegistryByteBuf;)V
    • 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.
    • position

      public Vec3d position()
      Returns the value of the position record component.
      Returns:
      the value of the position record component
    • radius

      public int radius()
      Returns the value of the radius record component.
      Returns:
      the value of the radius record component