Record Class LegacyStructureFileFix.LegacyStructureData
java.lang.Object
java.lang.Record
net.minecraft.util.filefix.fixes.LegacyStructureFileFix.LegacyStructureData
- Enclosing class:
LegacyStructureFileFix
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionLegacyStructureData(Map<String, com.mojang.serialization.Dynamic<?>> starts, Map<String, it.unimi.dsi.fastutil.longs.LongList> indexes) Creates an instance of aLegacyStructureDatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.indexes()Returns the value of theindexesrecord component.starts()Returns the value of thestartsrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
starts
-
indexes
-
-
Constructor Details
-
LegacyStructureData
public LegacyStructureData() -
LegacyStructureData
public LegacyStructureData(Map<String, com.mojang.serialization.Dynamic<?>> starts, Map<String, it.unimi.dsi.fastutil.longs.LongList> indexes) Creates an instance of aLegacyStructureDatarecord class.- Parameters:
starts- the value for thestartsrecord componentindexes- the value for theindexesrecord component
-
-
Method Details
-
addStart
-
addIndex
-
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). -
starts
-
indexes
-