Record Class NativeHudPayload
java.lang.Object
java.lang.Record
com.viaversion.viafabricplus.bedrock.screen.ui.NativeHudPayload
- All Implemented Interfaces:
net.minecraft.network.protocol.common.custom.CustomPacketPayload
public record NativeHudPayload(NativeHudPayload.Kind kind, net.raphimc.viabedrock.api.model.NativeHudMessage message)
extends Record
implements net.minecraft.network.protocol.common.custom.CustomPacketPayload
Separate capabilities retain the existing title wire format for older add-ons.
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface net.minecraft.network.protocol.common.custom.CustomPacketPayload
net.minecraft.network.protocol.common.custom.CustomPacketPayload.FallbackProvider<B>, net.minecraft.network.protocol.common.custom.CustomPacketPayload.Type<T>, net.minecraft.network.protocol.common.custom.CustomPacketPayload.TypeAndCodec<B,T> -
Constructor Summary
ConstructorsConstructorDescriptionNativeHudPayload(NativeHudPayload.Kind kind, net.raphimc.viabedrock.api.model.NativeHudMessage message) Creates an instance of aNativeHudPayloadrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.kind()Returns the value of thekindrecord component.net.raphimc.viabedrock.api.model.NativeHudMessagemessage()Returns the value of themessagerecord component.final StringtoString()Returns a string representation of this record class.net.minecraft.network.protocol.common.custom.CustomPacketPayload.Type<NativeHudPayload> type()
-
Constructor Details
-
NativeHudPayload
public NativeHudPayload(NativeHudPayload.Kind kind, net.raphimc.viabedrock.api.model.NativeHudMessage message) Creates an instance of aNativeHudPayloadrecord class.- Parameters:
kind- the value for thekindrecord componentmessage- the value for themessagerecord component
-
-
Method Details
-
type
public net.minecraft.network.protocol.common.custom.CustomPacketPayload.Type<NativeHudPayload> type()- Specified by:
typein interfacenet.minecraft.network.protocol.common.custom.CustomPacketPayload
-
toString
-
hashCode
-
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). -
kind
Returns the value of thekindrecord component.- Returns:
- the value of the
kindrecord component
-
message
public net.raphimc.viabedrock.api.model.NativeHudMessage message()Returns the value of themessagerecord component.- Returns:
- the value of the
messagerecord component
-