Record Class LegacyStructureFileFix.DimensionFixEntry
java.lang.Object
java.lang.Record
net.minecraft.util.filefix.fixes.LegacyStructureFileFix.DimensionFixEntry
- Enclosing class:
LegacyStructureFileFix
private static record LegacyStructureFileFix.DimensionFixEntry(ResourceKey<Level> dimensionKey, List<FileAccess<SavedDataNbt>> structureFileAccess, FileAccess<ChunkNbt> chunkFileAccess, it.unimi.dsi.fastutil.longs.Long2ObjectOpenHashMap<LegacyStructureFileFix.LegacyStructureData> structures)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final FileAccess<ChunkNbt> The field for thechunkFileAccessrecord component.private final ResourceKey<Level> The field for thedimensionKeyrecord component.private final List<FileAccess<SavedDataNbt>> The field for thestructureFileAccessrecord component.private final it.unimi.dsi.fastutil.longs.Long2ObjectOpenHashMap<LegacyStructureFileFix.LegacyStructureData> The field for thestructuresrecord component. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateDimensionFixEntry(ResourceKey<Level> dimensionKey, List<FileAccess<SavedDataNbt>> structureFileAccess, FileAccess<ChunkNbt> chunkFileAccess, it.unimi.dsi.fastutil.longs.Long2ObjectOpenHashMap<LegacyStructureFileFix.LegacyStructureData> structures) Creates an instance of aDimensionFixEntryrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thechunkFileAccessrecord component.Returns the value of thedimensionKeyrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thestructureFileAccessrecord component.it.unimi.dsi.fastutil.longs.Long2ObjectOpenHashMap<LegacyStructureFileFix.LegacyStructureData> Returns the value of thestructuresrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
dimensionKey
The field for thedimensionKeyrecord component. -
structureFileAccess
The field for thestructureFileAccessrecord component. -
chunkFileAccess
The field for thechunkFileAccessrecord component. -
structures
private final it.unimi.dsi.fastutil.longs.Long2ObjectOpenHashMap<LegacyStructureFileFix.LegacyStructureData> structuresThe field for thestructuresrecord component.
-
-
Constructor Details
-
DimensionFixEntry
private DimensionFixEntry(ResourceKey<Level> dimensionKey, List<FileAccess<SavedDataNbt>> structureFileAccess, FileAccess<ChunkNbt> chunkFileAccess, it.unimi.dsi.fastutil.longs.Long2ObjectOpenHashMap<LegacyStructureFileFix.LegacyStructureData> structures) Creates an instance of aDimensionFixEntryrecord class.- Parameters:
dimensionKey- the value for thedimensionKeyrecord componentstructureFileAccess- the value for thestructureFileAccessrecord componentchunkFileAccess- the value for thechunkFileAccessrecord componentstructures- the value for thestructuresrecord 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). -
dimensionKey
Returns the value of thedimensionKeyrecord component.- Returns:
- the value of the
dimensionKeyrecord component
-
structureFileAccess
Returns the value of thestructureFileAccessrecord component.- Returns:
- the value of the
structureFileAccessrecord component
-
chunkFileAccess
Returns the value of thechunkFileAccessrecord component.- Returns:
- the value of the
chunkFileAccessrecord component
-
structures
public it.unimi.dsi.fastutil.longs.Long2ObjectOpenHashMap<LegacyStructureFileFix.LegacyStructureData> structures()Returns the value of thestructuresrecord component.- Returns:
- the value of the
structuresrecord component
-