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 Details

    • dimensionKey

      private final ResourceKey<Level> dimensionKey
      The field for the dimensionKey record component.
    • structureFileAccess

      private final List<FileAccess<SavedDataNbt>> structureFileAccess
      The field for the structureFileAccess record component.
    • chunkFileAccess

      private final FileAccess<ChunkNbt> chunkFileAccess
      The field for the chunkFileAccess record component.
    • structures

      private final it.unimi.dsi.fastutil.longs.Long2ObjectOpenHashMap<LegacyStructureFileFix.LegacyStructureData> structures
      The field for the structures record 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 a DimensionFixEntry record class.
      Parameters:
      dimensionKey - the value for the dimensionKey record component
      structureFileAccess - the value for the structureFileAccess record component
      chunkFileAccess - the value for the chunkFileAccess record component
      structures - the value for the structures record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • dimensionKey

      public ResourceKey<Level> dimensionKey()
      Returns the value of the dimensionKey record component.
      Returns:
      the value of the dimensionKey record component
    • structureFileAccess

      public List<FileAccess<SavedDataNbt>> structureFileAccess()
      Returns the value of the structureFileAccess record component.
      Returns:
      the value of the structureFileAccess record component
    • chunkFileAccess

      public FileAccess<ChunkNbt> chunkFileAccess()
      Returns the value of the chunkFileAccess record component.
      Returns:
      the value of the chunkFileAccess record component
    • structures

      public it.unimi.dsi.fastutil.longs.Long2ObjectOpenHashMap<LegacyStructureFileFix.LegacyStructureData> structures()
      Returns the value of the structures record component.
      Returns:
      the value of the structures record component