Record Class MapItemDecorations
java.lang.Object
java.lang.Record
fr.fidorial.item.component.MapItemDecorations
- Record Components:
entries- the icons, by id
Icons a
filled_map item adds to its map wherever it is carried, under
minecraft:map_decorations: the target of an explorer map, for instance.
Unlike markers, they belong to the item: two copies of the same map can show different targets. The client never sees this component, only the icons the server draws from it.
- Since:
- 0.1.0
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordOne icon, placed in the world. -
Constructor Summary
ConstructorsConstructorDescriptionMapItemDecorations(Map<String, MapItemDecorations.Entry> entries) Creates an instance of aMapItemDecorationsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionentries()Returns the value of theentriesrecord 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.
-
Constructor Details
-
MapItemDecorations
Creates an instance of aMapItemDecorationsrecord class.- Parameters:
entries- the value for theentriesrecord component
-
-
Method Details
-
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). -
entries
-