Record Class MappingsType<K,V>
java.lang.Object
java.lang.Record
org.geysermc.geyser.registry.mappings.MappingsType<K,V>
public record MappingsType<K,V> (String name, it.unimi.dsi.fastutil.ints.Int2ObjectMap<MappingsReader<K,V>> readers)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final MappingsType<String, CustomBlockMapping> static final MappingsType<org.geysermc.geyser.api.util.Identifier, org.geysermc.geyser.api.item.custom.v2.CustomItemDefinition> static final MappingsType<org.geysermc.geyser.api.util.Identifier, org.geysermc.geyser.api.waypoint.CustomWaypointStyle> -
Constructor Summary
ConstructorsConstructorDescriptionMappingsType(String name, it.unimi.dsi.fastutil.ints.Int2ObjectMap<MappingsReader<K, V>> readers) Creates an instance of aMappingsTyperecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.name()Returns the value of thenamerecord component.it.unimi.dsi.fastutil.ints.Int2ObjectMap<MappingsReader<K, V>> readers()Returns the value of thereadersrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
BLOCKS
-
ITEMS
public static final MappingsType<org.geysermc.geyser.api.util.Identifier,org.geysermc.geyser.api.item.custom.v2.CustomItemDefinition> ITEMS -
WAYPOINT_STYLES
public static final MappingsType<org.geysermc.geyser.api.util.Identifier,org.geysermc.geyser.api.waypoint.CustomWaypointStyle> WAYPOINT_STYLES
-
-
Constructor Details
-
MappingsType
public MappingsType(String name, it.unimi.dsi.fastutil.ints.Int2ObjectMap<MappingsReader<K, V>> readers) Creates an instance of aMappingsTyperecord class.- Parameters:
name- the value for thenamerecord componentreaders- the value for thereadersrecord component
-
-
Method Details
-
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). -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
readers
Returns the value of thereadersrecord component.- Returns:
- the value of the
readersrecord component
-