Record Class BossBarS2CPacket.UpdateProgressAction
java.lang.Object
java.lang.Record
net.minecraft.network.packet.s2c.play.BossBarS2CPacket.UpdateProgressAction
- Record Components:
- progress-
- All Implemented Interfaces:
- BossBarS2CPacket.Action
- Enclosing class:
- BossBarS2CPacket
private static record BossBarS2CPacket.UpdateProgressAction(float progress)
extends Record
implements BossBarS2CPacket.Action
- Mappings:
- Namespace - Name - named - net/minecraft/network/packet/s2c/play/BossBarS2CPacket$UpdateProgressAction- intermediary - net/minecraft/class_2629$class_5885- official - abv$f- named - progress- intermediary - comp_2261- official - a
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier 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.floatprogress()Returns the value of theprogressrecord component.voidtoPacket(RegistryByteBuf buf) final StringtoString()Returns a string representation of this record class.
- 
Field Details- 
progressprivate final float progressThe field for theprogressrecord component.
 
- 
- 
Constructor Details- 
UpdateProgressAction- Mappings:
- Namespace - Name - Mixin selector - named - <init>- Lnet/minecraft/network/packet/s2c/play/BossBarS2CPacket$UpdateProgressAction;<init>(Lnet/minecraft/network/RegistryByteBuf;)V- intermediary - <init>- Lnet/minecraft/class_2629$class_5885;<init>(Lnet/minecraft/class_9129;)V- official - <init>- Labv$f;<init>(Lwa;)V
 
- 
UpdateProgressActionUpdateProgressAction(float percent) - Mappings:
- Namespace - Name - Mixin selector - named - <init>- Lnet/minecraft/network/packet/s2c/play/BossBarS2CPacket$UpdateProgressAction;<init>(F)V- intermediary - <init>- Lnet/minecraft/class_2629$class_5885;<init>(F)V- official - <init>- Labv$f;<init>(F)V
 
 
- 
- 
Method Details- 
getType- Specified by:
- getTypein interface- BossBarS2CPacket.Action
- Mappings:
- Namespace - Name - Mixin selector - named - getType- Lnet/minecraft/network/packet/s2c/play/BossBarS2CPacket$Action;getType()Lnet/minecraft/network/packet/s2c/play/BossBarS2CPacket$Type;- intermediary - method_34105- Lnet/minecraft/class_2629$class_5882;method_34105()Lnet/minecraft/class_2629$class_5883;- official - a- Labv$c;a()Labv$d;
 
- 
accept- Specified by:
- acceptin interface- BossBarS2CPacket.Action
- Mappings:
- Namespace - Name - Mixin selector - named - accept- Lnet/minecraft/network/packet/s2c/play/BossBarS2CPacket$Action;accept(Ljava/util/UUID;Lnet/minecraft/network/packet/s2c/play/BossBarS2CPacket$Consumer;)V- intermediary - method_34106- Lnet/minecraft/class_2629$class_5882;method_34106(Ljava/util/UUID;Lnet/minecraft/class_2629$class_5881;)V- official - a- Labv$c;a(Ljava/util/UUID;Labv$b;)V
 
- 
toPacket- Specified by:
- toPacketin interface- BossBarS2CPacket.Action
- Mappings:
- Namespace - Name - Mixin selector - named - toPacket- Lnet/minecraft/network/packet/s2c/play/BossBarS2CPacket$Action;toPacket(Lnet/minecraft/network/RegistryByteBuf;)V- intermediary - method_34107- Lnet/minecraft/class_2629$class_5882;method_34107(Lnet/minecraft/class_9129;)V- official - a- Labv$c;a(Lwa;)V
 
- 
toStringReturns 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.
- 
hashCodepublic 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.
- 
equalsIndicates 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 '=='.
- 
progresspublic float progress()Returns the value of theprogressrecord component.- Returns:
- the value of the progressrecord component
 
 
-