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 official cxpintermediary net/minecraft/class_9292named net/minecraft/component/type/MapDecorationsComponentofficial cintermediary comp_2404named decorations
-
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
Constructors -
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 official aLcxp;a:Lcxp;intermediary field_49347Lnet/minecraft/class_9292;field_49347:Lnet/minecraft/class_9292;named DEFAULTLnet/minecraft/component/type/MapDecorationsComponent;DEFAULT:Lnet/minecraft/component/type/MapDecorationsComponent;
-
CODEC
- Mappings:
Namespace Name Mixin selector official bLcxp;b:Lcom/mojang/serialization/Codec;intermediary field_49348Lnet/minecraft/class_9292;field_49348:Lcom/mojang/serialization/Codec;named CODECLnet/minecraft/component/type/MapDecorationsComponent;CODEC:Lcom/mojang/serialization/Codec;
-
-
Constructor Details
-
MapDecorationsComponent
-
-
Method Details
-
with
- Mappings:
Namespace Name Mixin selector official aLcxp;a(Ljava/lang/String;Lcxp$a;)Lcxp;intermediary method_57503Lnet/minecraft/class_9292;method_57503(Ljava/lang/String;Lnet/minecraft/class_9292$class_9293;)Lnet/minecraft/class_9292;named withLnet/minecraft/component/type/MapDecorationsComponent;with(Ljava/lang/String;Lnet/minecraft/component/type/MapDecorationsComponent$Decoration;)Lnet/minecraft/component/type/MapDecorationsComponent;
-
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
-