Record Class BossBarS2CPacket.UpdateNameAction
java.lang.Object
java.lang.Record
net.minecraft.network.packet.s2c.play.BossBarS2CPacket.UpdateNameAction
- Record Components:
name-
- All Implemented Interfaces:
BossBarS2CPacket.Action
- Enclosing class:
BossBarS2CPacket
private static record BossBarS2CPacket.UpdateNameAction(Text name)
extends Record
implements BossBarS2CPacket.Action
- Mappings:
Namespace Name named net/minecraft/network/packet/s2c/play/BossBarS2CPacket$UpdateNameActionintermediary net/minecraft/class_2629$class_5884official ace$enamed nameintermediary comp_2260official a
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate(package private)UpdateNameAction(Text name) Creates an instance of aUpdateNameActionrecord class. -
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.name()Returns the value of thenamerecord component.voidtoPacket(RegistryByteBuf buf) final StringtoString()Returns a string representation of this record class.
-
Field Details
-
name
The field for thenamerecord component.
-
-
Constructor Details
-
UpdateNameAction
- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/network/packet/s2c/play/BossBarS2CPacket$UpdateNameAction;<init>(Lnet/minecraft/network/RegistryByteBuf;)Vintermediary <init>Lnet/minecraft/class_2629$class_5884;<init>(Lnet/minecraft/class_9129;)Vofficial <init>Lace$e;<init>(Lwk;)V
-
UpdateNameAction
UpdateNameAction(Text name) Creates an instance of aUpdateNameActionrecord class.- Parameters:
name- the value for thenamerecord component
-
-
Method Details
-
getType
- Specified by:
getTypein interfaceBossBarS2CPacket.Action- Mappings:
Namespace Name Mixin selector named getTypeLnet/minecraft/network/packet/s2c/play/BossBarS2CPacket$Action;getType()Lnet/minecraft/network/packet/s2c/play/BossBarS2CPacket$Type;intermediary method_34105Lnet/minecraft/class_2629$class_5882;method_34105()Lnet/minecraft/class_2629$class_5883;official aLace$c;a()Lace$d;
-
accept
- Specified by:
acceptin interfaceBossBarS2CPacket.Action- Mappings:
Namespace Name Mixin selector named acceptLnet/minecraft/network/packet/s2c/play/BossBarS2CPacket$Action;accept(Ljava/util/UUID;Lnet/minecraft/network/packet/s2c/play/BossBarS2CPacket$Consumer;)Vintermediary method_34106Lnet/minecraft/class_2629$class_5882;method_34106(Ljava/util/UUID;Lnet/minecraft/class_2629$class_5881;)Vofficial aLace$c;a(Ljava/util/UUID;Lace$b;)V
-
toPacket
- Specified by:
toPacketin interfaceBossBarS2CPacket.Action- Mappings:
Namespace Name Mixin selector named toPacketLnet/minecraft/network/packet/s2c/play/BossBarS2CPacket$Action;toPacket(Lnet/minecraft/network/RegistryByteBuf;)Vintermediary method_34107Lnet/minecraft/class_2629$class_5882;method_34107(Lnet/minecraft/class_9129;)Vofficial aLace$c;a(Lwk;)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. All components in this record class are compared withObjects::equals(Object,Object). -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-