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/MapDecorationsComponent
intermediary net/minecraft/class_9292
official cxq
named decorations
intermediary comp_2404
official 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 thedecorations
record component.static final MapDecorationsComponent
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedecorations
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.final String
toString()
Returns a string representation of this record class.with
(String id, MapDecorationsComponent.Decoration decoration)
-
Field Details
-
decorations
The field for thedecorations
record component. -
DEFAULT
- Mappings:
Namespace Name Mixin selector named DEFAULT
Lnet/minecraft/component/type/MapDecorationsComponent;DEFAULT:Lnet/minecraft/component/type/MapDecorationsComponent;
intermediary field_49347
Lnet/minecraft/class_9292;field_49347:Lnet/minecraft/class_9292;
official a
Lcxq;a:Lcxq;
-
CODEC
- Mappings:
Namespace Name Mixin selector named CODEC
Lnet/minecraft/component/type/MapDecorationsComponent;CODEC:Lcom/mojang/serialization/Codec;
intermediary field_49348
Lnet/minecraft/class_9292;field_49348:Lcom/mojang/serialization/Codec;
official b
Lcxq;b:Lcom/mojang/serialization/Codec;
-
-
Constructor Details
-
MapDecorationsComponent
-
-
Method Details
-
with
- Mappings:
Namespace Name Mixin selector named with
Lnet/minecraft/component/type/MapDecorationsComponent;with(Ljava/lang/String;Lnet/minecraft/component/type/MapDecorationsComponent$Decoration;)Lnet/minecraft/component/type/MapDecorationsComponent;
intermediary method_57503
Lnet/minecraft/class_9292;method_57503(Ljava/lang/String;Lnet/minecraft/class_9292$class_9293;)Lnet/minecraft/class_9292;
official a
Lcxq;a(Ljava/lang/String;Lcxq$a;)Lcxq;
-
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 thedecorations
record component.- Returns:
- the value of the
decorations
record component
-