Record Class BossBarS2CPacket.UpdateProgressAction
java.lang.Object
java.lang.Record
net.minecraft.network.packet.s2c.play.BossBarS2CPacket.UpdateProgressAction
- Record Components:
percent
-
- All Implemented Interfaces:
BossBarS2CPacket.Action
- Enclosing class:
BossBarS2CPacket
private static record BossBarS2CPacket.UpdateProgressAction(float percent)
extends Record
implements BossBarS2CPacket.Action
- Mappings:
Namespace Name official aas$f
intermediary net/minecraft/class_2629$class_5885
named net/minecraft/network/packet/s2c/play/BossBarS2CPacket$UpdateProgressAction
official a
intermediary comp_2261
named percent
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescription(package private)
UpdateProgressAction
(float percent) Creates an instance of aUpdateProgressAction
record class.private
UpdateProgressAction
(RegistryByteBuf registryByteBuf) -
Method Summary
Modifier and TypeMethodDescriptionvoid
accept
(UUID uuid, BossBarS2CPacket.Consumer consumer) final boolean
Indicates whether some other object is "equal to" this one.getType()
final int
hashCode()
Returns a hash code value for this object.float
percent()
Returns the value of thepercent
record component.void
toPacket
(RegistryByteBuf registryByteBuf) final String
toString()
Returns a string representation of this record class.
-
Field Details
-
percent
private final float percentThe field for thepercent
record component.
-
-
Constructor Details
-
UpdateProgressAction
-
UpdateProgressAction
UpdateProgressAction(float percent) Creates an instance of aUpdateProgressAction
record class.- Parameters:
percent
- the value for thepercent
record component
-
-
Method Details
-
getType
- Specified by:
getType
in interfaceBossBarS2CPacket.Action
- Mappings:
Namespace Name Mixin selector official a
Laas$c;a()Laas$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
- Specified by:
accept
in interfaceBossBarS2CPacket.Action
- Mappings:
Namespace Name Mixin selector official a
Laas$c;a(Ljava/util/UUID;Laas$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
- Specified by:
toPacket
in interfaceBossBarS2CPacket.Action
- Mappings:
Namespace Name Mixin selector official a
Laas$c;a(Lvd;)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
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 with '=='. -
percent
public float percent()Returns the value of thepercent
record component.- Returns:
- the value of the
percent
record component
-