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$eintermediary net/minecraft/class_2629$class_9488named net/minecraft/network/packet/s2c/play/BossBarS2CPacket$class_9488official aintermediary comp_2563named positionofficial bintermediary comp_2564named radius
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateclass_9488(RegistryByteBuf registryByteBuf) (package private)class_9488(Vec3d vec3d, int int2) -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(UUID uuid, BossBarS2CPacket.Consumer consumer) final booleanIndicates whether some other object is "equal to" this one.getType()final inthashCode()Returns a hash code value for this object.position()Returns the value of thepositionrecord component.intradius()Returns the value of theradiusrecord component.voidtoPacket(RegistryByteBuf buf) final StringtoString()Returns a string representation of this record class.
-
Field Details
-
Constructor Details
-
class_9488
-
class_9488
class_9488(Vec3d vec3d, int int2)
-
-
Method Details
-
getType
- Specified by:
getTypein interfaceBossBarS2CPacket.Action- Mappings:
Namespace Name Mixin selector official aLach$c;a()Lach$d;intermediary method_34105Lnet/minecraft/class_2629$class_5882;method_34105()Lnet/minecraft/class_2629$class_5883;named getTypeLnet/minecraft/network/packet/s2c/play/BossBarS2CPacket$Action;getType()Lnet/minecraft/network/packet/s2c/play/BossBarS2CPacket$Type;
-
accept
- Specified by:
acceptin interfaceBossBarS2CPacket.Action- Mappings:
Namespace Name Mixin selector official aLach$c;a(Ljava/util/UUID;Lach$b;)Vintermediary method_34106Lnet/minecraft/class_2629$class_5882;method_34106(Ljava/util/UUID;Lnet/minecraft/class_2629$class_5881;)Vnamed acceptLnet/minecraft/network/packet/s2c/play/BossBarS2CPacket$Action;accept(Ljava/util/UUID;Lnet/minecraft/network/packet/s2c/play/BossBarS2CPacket$Consumer;)V
-
toPacket
- Specified by:
toPacketin interfaceBossBarS2CPacket.Action- Mappings:
Namespace Name Mixin selector official aLach$c;a(Lwp;)Vintermediary method_34107Lnet/minecraft/class_2629$class_5882;method_34107(Lnet/minecraft/class_9129;)Vnamed toPacketLnet/minecraft/network/packet/s2c/play/BossBarS2CPacket$Action;toPacket(Lnet/minecraft/network/RegistryByteBuf;)V
-
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. -
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. -
equals
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 withObjects::equals(Object,Object); primitive components are compared with '=='. -
position
Returns the value of thepositionrecord component.- Returns:
- the value of the
positionrecord component
-
radius
public int radius()Returns the value of theradiusrecord component.- Returns:
- the value of the
radiusrecord component
-