Record Class ClientboundBossEventPacket.UpdateProgressOperation
java.lang.Object
java.lang.Record
net.minecraft.network.protocol.game.ClientboundBossEventPacket.UpdateProgressOperation
- All Implemented Interfaces:
ClientboundBossEventPacket.Operation
- Enclosing class:
ClientboundBossEventPacket
static record ClientboundBossEventPacket.UpdateProgressOperation(float progress)
extends Record
implements ClientboundBossEventPacket.Operation
-
Field Summary
Modifier and TypeFieldDescriptionprivate final float
The field for theprogress
record component. -
Constructor Summary
ModifierConstructorDescription(package private)
UpdateProgressOperation
(float progress) Creates an instance of aUpdateProgressOperation
record class.private
UpdateProgressOperation
(RegistryFriendlyByteBuf p_329547_) -
Method Summary
Modifier and TypeMethodDescriptionvoid
dispatch
(UUID p_178741_, ClientboundBossEventPacket.Handler p_178742_) 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
progress()
Returns the value of theprogress
record component.final String
toString()
Returns a string representation of this record class.void
write
(RegistryFriendlyByteBuf p_331612_)
-
Field Details
-
progress
private final float progressThe field for theprogress
record component.
-
-
Constructor Details
-
UpdateProgressOperation
-
UpdateProgressOperation
UpdateProgressOperation(float progress) Creates an instance of aUpdateProgressOperation
record class.- Parameters:
progress
- the value for theprogress
record component
-
-
Method Details
-
getType
- Specified by:
getType
in interfaceClientboundBossEventPacket.Operation
-
dispatch
- Specified by:
dispatch
in interfaceClientboundBossEventPacket.Operation
-
write
- Specified by:
write
in interfaceClientboundBossEventPacket.Operation
-
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 '=='. -
progress
public float progress()Returns the value of theprogress
record component.- Returns:
- the value of the
progress
record component
-