Package net.minecraft.registry
Record Class VersionedIdentifier
java.lang.Object
java.lang.Record
net.minecraft.registry.VersionedIdentifier
- Record Components:
namespace
-id
-version
-
- Mappings:
Namespace Name named net/minecraft/registry/VersionedIdentifier
intermediary net/minecraft/class_9226
official atl
named namespace
intermediary comp_2336
official c
named id
intermediary comp_2337
official d
named version
intermediary comp_2338
official e
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
private final String
The field for theid
record component.private final String
The field for thenamespace
record component.static final PacketCodec
<ByteBuf, VersionedIdentifier> private final String
The field for theversion
record component. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic VersionedIdentifier
createVanilla
(String path) final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.id()
Returns the value of theid
record component.boolean
Returns the value of thenamespace
record component.toString()
Returns a string representation of this record class.version()
Returns the value of theversion
record component.
-
Field Details
-
namespace
The field for thenamespace
record component. -
id
The field for theid
record component. -
version
The field for theversion
record component. -
PACKET_CODEC
- Mappings:
Namespace Name Mixin selector named PACKET_CODEC
Lnet/minecraft/registry/VersionedIdentifier;PACKET_CODEC:Lnet/minecraft/network/codec/PacketCodec;
intermediary field_49035
Lnet/minecraft/class_9226;field_49035:Lnet/minecraft/class_9139;
official a
Latl;a:Lyx;
-
DEFAULT_NAMESPACE
- See Also:
- Mappings:
Namespace Name Mixin selector named DEFAULT_NAMESPACE
Lnet/minecraft/registry/VersionedIdentifier;DEFAULT_NAMESPACE:Ljava/lang/String;
intermediary field_49036
Lnet/minecraft/class_9226;field_49036:Ljava/lang/String;
official b
Latl;b:Ljava/lang/String;
-
-
Constructor Details
-
VersionedIdentifier
-
-
Method Details
-
createVanilla
- Mappings:
Namespace Name Mixin selector named createVanilla
Lnet/minecraft/registry/VersionedIdentifier;createVanilla(Ljava/lang/String;)Lnet/minecraft/registry/VersionedIdentifier;
intermediary method_56932
Lnet/minecraft/class_9226;method_56932(Ljava/lang/String;)Lnet/minecraft/class_9226;
official a
Latl;a(Ljava/lang/String;)Latl;
-
isVanilla
public boolean isVanilla()- Mappings:
Namespace Name Mixin selector named isVanilla
Lnet/minecraft/registry/VersionedIdentifier;isVanilla()Z
intermediary method_56931
Lnet/minecraft/class_9226;method_56931()Z
official a
Latl;a()Z
-
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)
. -
namespace
Returns the value of thenamespace
record component.- Returns:
- the value of the
namespace
record component
-
id
Returns the value of theid
record component.- Returns:
- the value of the
id
record component
-
version
Returns the value of theversion
record component.- Returns:
- the value of the
version
record component
-