Package net.minecraft.component.type
Record Class MapDecorationsComponent
java.lang.Object
java.lang.Record
net.minecraft.component.type.MapDecorationsComponent
- Record Components:
decorations-
public record MapDecorationsComponent(Map<String,MapDecorationsComponent.Decoration> decorations)
extends Record
- Mappings:
Namespace Name named net/minecraft/component/type/MapDecorationsComponentintermediary net/minecraft/class_9292official dnenamed decorationsintermediary comp_2404official c
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<MapDecorationsComponent> private final Map<String, MapDecorationsComponent.Decoration> The field for thedecorationsrecord component.static final MapDecorationsComponent -
Constructor Summary
ConstructorsConstructorDescriptionMapDecorationsComponent(Map<String, MapDecorationsComponent.Decoration> decorations) Creates an instance of aMapDecorationsComponentrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedecorationsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.with(String id, MapDecorationsComponent.Decoration decoration)
-
Field Details
-
decorations
The field for thedecorationsrecord component. -
DEFAULT
- Mappings:
Namespace Name Mixin selector named DEFAULTLnet/minecraft/component/type/MapDecorationsComponent;DEFAULT:Lnet/minecraft/component/type/MapDecorationsComponent;intermediary field_49347Lnet/minecraft/class_9292;field_49347:Lnet/minecraft/class_9292;official aLdne;a:Ldne;
-
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/component/type/MapDecorationsComponent;CODEC:Lcom/mojang/serialization/Codec;intermediary field_49348Lnet/minecraft/class_9292;field_49348:Lcom/mojang/serialization/Codec;official bLdne;b:Lcom/mojang/serialization/Codec;
-
-
Constructor Details
-
MapDecorationsComponent
Creates an instance of aMapDecorationsComponentrecord class.- Parameters:
decorations- the value for thedecorationsrecord component
-
-
Method Details
-
with
- Mappings:
Namespace Name Mixin selector named withLnet/minecraft/component/type/MapDecorationsComponent;with(Ljava/lang/String;Lnet/minecraft/component/type/MapDecorationsComponent$Decoration;)Lnet/minecraft/component/type/MapDecorationsComponent;intermediary method_57503Lnet/minecraft/class_9292;method_57503(Ljava/lang/String;Lnet/minecraft/class_9292$class_9293;)Lnet/minecraft/class_9292;official aLdne;a(Ljava/lang/String;Ldne$a;)Ldne;
-
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). -
decorations
Returns the value of thedecorationsrecord component.- Returns:
- the value of the
decorationsrecord component
-