Class StructureManager

java.lang.Object
net.minecraft.structure.StructureManager

public class StructureManager extends Object
Mappings:
Namespace Name
official dnw
intermediary net/minecraft/class_3485
named net/minecraft/structure/StructureManager
  • Field Details

    • LOGGER

      private static final org.slf4j.Logger LOGGER
      Mappings:
      Namespace Name Mixin selector
      official a Ldnw;a:Lorg/slf4j/Logger;
      intermediary field_15514 Lnet/minecraft/class_3485;field_15514:Lorg/slf4j/Logger;
      named LOGGER Lnet/minecraft/structure/StructureManager;LOGGER:Lorg/slf4j/Logger;
    • STRUCTURES_DIRECTORY

      private static final String STRUCTURES_DIRECTORY
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official b Ldnw;b:Ljava/lang/String;
      intermediary field_31684 Lnet/minecraft/class_3485;field_31684:Ljava/lang/String;
      named STRUCTURES_DIRECTORY Lnet/minecraft/structure/StructureManager;STRUCTURES_DIRECTORY:Ljava/lang/String;
    • field_39416

      private static final String field_39416
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official c Ldnw;c:Ljava/lang/String;
      intermediary field_39416 Lnet/minecraft/class_3485;field_39416:Ljava/lang/String;
      named field_39416 Lnet/minecraft/structure/StructureManager;field_39416:Ljava/lang/String;
    • NBT_FILE_EXTENSION

      private static final String NBT_FILE_EXTENSION
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official d Ldnw;d:Ljava/lang/String;
      intermediary field_31685 Lnet/minecraft/class_3485;field_31685:Ljava/lang/String;
      named NBT_FILE_EXTENSION Lnet/minecraft/structure/StructureManager;NBT_FILE_EXTENSION:Ljava/lang/String;
    • SNBT_FILE_EXTENSION

      private static final String SNBT_FILE_EXTENSION
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official e Ldnw;e:Ljava/lang/String;
      intermediary field_31686 Lnet/minecraft/class_3485;field_31686:Ljava/lang/String;
      named SNBT_FILE_EXTENSION Lnet/minecraft/structure/StructureManager;SNBT_FILE_EXTENSION:Ljava/lang/String;
    • structures

      private final Map<Identifier,Optional<Structure>> structures
      Mappings:
      Namespace Name Mixin selector
      official f Ldnw;f:Ljava/util/Map;
      intermediary field_15513 Lnet/minecraft/class_3485;field_15513:Ljava/util/Map;
      named structures Lnet/minecraft/structure/StructureManager;structures:Ljava/util/Map;
    • dataFixer

      private final com.mojang.datafixers.DataFixer dataFixer
      Mappings:
      Namespace Name Mixin selector
      official g Ldnw;g:Lcom/mojang/datafixers/DataFixer;
      intermediary field_15515 Lnet/minecraft/class_3485;field_15515:Lcom/mojang/datafixers/DataFixer;
      named dataFixer Lnet/minecraft/structure/StructureManager;dataFixer:Lcom/mojang/datafixers/DataFixer;
    • resourceManager

      private ResourceManager resourceManager
      Mappings:
      Namespace Name Mixin selector
      official h Ldnw;h:Lahu;
      intermediary field_25189 Lnet/minecraft/class_3485;field_25189:Lnet/minecraft/class_3300;
      named resourceManager Lnet/minecraft/structure/StructureManager;resourceManager:Lnet/minecraft/resource/ResourceManager;
    • generatedPath

      private final Path generatedPath
      Mappings:
      Namespace Name Mixin selector
      official i Ldnw;i:Ljava/nio/file/Path;
      intermediary field_15512 Lnet/minecraft/class_3485;field_15512:Ljava/nio/file/Path;
      named generatedPath Lnet/minecraft/structure/StructureManager;generatedPath:Ljava/nio/file/Path;
    • field_39417

      private final List<StructureManager.class_7514> field_39417
      Mappings:
      Namespace Name Mixin selector
      official j Ldnw;j:Ljava/util/List;
      intermediary field_39417 Lnet/minecraft/class_3485;field_39417:Ljava/util/List;
      named field_39417 Lnet/minecraft/structure/StructureManager;field_39417:Ljava/util/List;
  • Constructor Details

    • StructureManager

      public StructureManager(ResourceManager resourceManager, LevelStorage.Session session, com.mojang.datafixers.DataFixer dataFixer)
      Mappings:
      Namespace Name Mixin selector
      official <init> Ldnw;<init>(Lahu;Ldqs$c;Lcom/mojang/datafixers/DataFixer;)V
      intermediary <init> Lnet/minecraft/class_3485;<init>(Lnet/minecraft/class_3300;Lnet/minecraft/class_32$class_5143;Lcom/mojang/datafixers/DataFixer;)V
      named <init> Lnet/minecraft/structure/StructureManager;<init>(Lnet/minecraft/resource/ResourceManager;Lnet/minecraft/world/level/storage/LevelStorage$Session;Lcom/mojang/datafixers/DataFixer;)V
  • Method Details

    • getStructureOrBlank

      public Structure getStructureOrBlank(Identifier id)
      Mappings:
      Namespace Name Mixin selector
      official a Ldnw;a(Laaj;)Ldnv;
      intermediary method_15091 Lnet/minecraft/class_3485;method_15091(Lnet/minecraft/class_2960;)Lnet/minecraft/class_3499;
      named getStructureOrBlank Lnet/minecraft/structure/StructureManager;getStructureOrBlank(Lnet/minecraft/util/Identifier;)Lnet/minecraft/structure/Structure;
    • getStructure

      public Optional<Structure> getStructure(Identifier id)
      Mappings:
      Namespace Name Mixin selector
      official b Ldnw;b(Laaj;)Ljava/util/Optional;
      intermediary method_15094 Lnet/minecraft/class_3485;method_15094(Lnet/minecraft/class_2960;)Ljava/util/Optional;
      named getStructure Lnet/minecraft/structure/StructureManager;getStructure(Lnet/minecraft/util/Identifier;)Ljava/util/Optional;
    • method_44226

      public Stream<Identifier> method_44226()
      Mappings:
      Namespace Name Mixin selector
      official a Ldnw;a()Ljava/util/stream/Stream;
      intermediary method_44226 Lnet/minecraft/class_3485;method_44226()Ljava/util/stream/Stream;
      named method_44226 Lnet/minecraft/structure/StructureManager;method_44226()Ljava/util/stream/Stream;
    • method_44245

      private Optional<Structure> method_44245(Identifier identifier)
      Mappings:
      Namespace Name Mixin selector
      official e Ldnw;e(Laaj;)Ljava/util/Optional;
      intermediary method_44245 Lnet/minecraft/class_3485;method_44245(Lnet/minecraft/class_2960;)Ljava/util/Optional;
      named method_44245 Lnet/minecraft/structure/StructureManager;method_44245(Lnet/minecraft/util/Identifier;)Ljava/util/Optional;
    • setResourceManager

      public void setResourceManager(ResourceManager resourceManager)
      Mappings:
      Namespace Name Mixin selector
      official a Ldnw;a(Lahu;)V
      intermediary method_29300 Lnet/minecraft/class_3485;method_29300(Lnet/minecraft/class_3300;)V
      named setResourceManager Lnet/minecraft/structure/StructureManager;setResourceManager(Lnet/minecraft/resource/ResourceManager;)V
    • loadStructureFromResource

      private Optional<Structure> loadStructureFromResource(Identifier id)
      Mappings:
      Namespace Name Mixin selector
      official f Ldnw;f(Laaj;)Ljava/util/Optional;
      intermediary method_15088 Lnet/minecraft/class_3485;method_15088(Lnet/minecraft/class_2960;)Ljava/util/Optional;
      named loadStructureFromResource Lnet/minecraft/structure/StructureManager;loadStructureFromResource(Lnet/minecraft/util/Identifier;)Ljava/util/Optional;
    • method_44239

      private Stream<Identifier> method_44239()
      Mappings:
      Namespace Name Mixin selector
      official b Ldnw;b()Ljava/util/stream/Stream;
      intermediary method_44239 Lnet/minecraft/class_3485;method_44239()Ljava/util/stream/Stream;
      named method_44239 Lnet/minecraft/structure/StructureManager;method_44239()Ljava/util/stream/Stream;
    • method_44246

      private Optional<Structure> method_44246(Identifier identifier)
      Mappings:
      Namespace Name Mixin selector
      official g Ldnw;g(Laaj;)Ljava/util/Optional;
      intermediary method_44246 Lnet/minecraft/class_3485;method_44246(Lnet/minecraft/class_2960;)Ljava/util/Optional;
      named method_44246 Lnet/minecraft/structure/StructureManager;method_44246(Lnet/minecraft/util/Identifier;)Ljava/util/Optional;
    • method_44241

      private Stream<Identifier> method_44241()
      Mappings:
      Namespace Name Mixin selector
      official c Ldnw;c()Ljava/util/stream/Stream;
      intermediary method_44241 Lnet/minecraft/class_3485;method_44241()Ljava/util/stream/Stream;
      named method_44241 Lnet/minecraft/structure/StructureManager;method_44241()Ljava/util/stream/Stream;
    • loadStructureFromFile

      private Optional<Structure> loadStructureFromFile(Identifier id)
      Mappings:
      Namespace Name Mixin selector
      official h Ldnw;h(Laaj;)Ljava/util/Optional;
      intermediary method_15092 Lnet/minecraft/class_3485;method_15092(Lnet/minecraft/class_2960;)Ljava/util/Optional;
      named loadStructureFromFile Lnet/minecraft/structure/StructureManager;loadStructureFromFile(Lnet/minecraft/util/Identifier;)Ljava/util/Optional;
    • method_44243

      private Stream<Identifier> method_44243()
      Mappings:
      Namespace Name Mixin selector
      official d Ldnw;d()Ljava/util/stream/Stream;
      intermediary method_44243 Lnet/minecraft/class_3485;method_44243()Ljava/util/stream/Stream;
      named method_44243 Lnet/minecraft/structure/StructureManager;method_44243()Ljava/util/stream/Stream;
    • method_44235

      private Stream<Identifier> method_44235(Path path)
      Mappings:
      Namespace Name Mixin selector
      official a Ldnw;a(Ljava/nio/file/Path;)Ljava/util/stream/Stream;
      intermediary method_44235 Lnet/minecraft/class_3485;method_44235(Ljava/nio/file/Path;)Ljava/util/stream/Stream;
      named method_44235 Lnet/minecraft/structure/StructureManager;method_44235(Ljava/nio/file/Path;)Ljava/util/stream/Stream;
    • method_44236

      private Stream<Identifier> method_44236(Path path, String string, String string2)
      Mappings:
      Namespace Name Mixin selector
      official a Ldnw;a(Ljava/nio/file/Path;Ljava/lang/String;Ljava/lang/String;)Ljava/util/stream/Stream;
      intermediary method_44236 Lnet/minecraft/class_3485;method_44236(Ljava/nio/file/Path;Ljava/lang/String;Ljava/lang/String;)Ljava/util/stream/Stream;
      named method_44236 Lnet/minecraft/structure/StructureManager;method_44236(Ljava/nio/file/Path;Ljava/lang/String;Ljava/lang/String;)Ljava/util/stream/Stream;
    • method_44238

      private String method_44238(Path path, Path path2)
      Mappings:
      Namespace Name Mixin selector
      official a Ldnw;a(Ljava/nio/file/Path;Ljava/nio/file/Path;)Ljava/lang/String;
      intermediary method_44238 Lnet/minecraft/class_3485;method_44238(Ljava/nio/file/Path;Ljava/nio/file/Path;)Ljava/lang/String;
      named method_44238 Lnet/minecraft/structure/StructureManager;method_44238(Ljava/nio/file/Path;Ljava/nio/file/Path;)Ljava/lang/String;
    • method_44230

      private Optional<Structure> method_44230(Identifier identifier, Path path)
      Mappings:
      Namespace Name Mixin selector
      official a Ldnw;a(Laaj;Ljava/nio/file/Path;)Ljava/util/Optional;
      intermediary method_44230 Lnet/minecraft/class_3485;method_44230(Lnet/minecraft/class_2960;Ljava/nio/file/Path;)Ljava/util/Optional;
      named method_44230 Lnet/minecraft/structure/StructureManager;method_44230(Lnet/minecraft/util/Identifier;Ljava/nio/file/Path;)Ljava/util/Optional;
    • method_44231

      private Optional<Structure> method_44231(StructureManager.class_7513 class_7513, Consumer<Throwable> consumer)
      Mappings:
      Namespace Name Mixin selector
      official a Ldnw;a(Ldnw$a;Ljava/util/function/Consumer;)Ljava/util/Optional;
      intermediary method_44231 Lnet/minecraft/class_3485;method_44231(Lnet/minecraft/class_3485$class_7513;Ljava/util/function/Consumer;)Ljava/util/Optional;
      named method_44231 Lnet/minecraft/structure/StructureManager;method_44231(Lnet/minecraft/structure/StructureManager$class_7513;Ljava/util/function/Consumer;)Ljava/util/Optional;
    • readStructure

      private Structure readStructure(InputStream structureInputStream) throws IOException
      Throws:
      IOException
      Mappings:
      Namespace Name Mixin selector
      official a Ldnw;a(Ljava/io/InputStream;)Ldnv;
      intermediary method_15090 Lnet/minecraft/class_3485;method_15090(Ljava/io/InputStream;)Lnet/minecraft/class_3499;
      named readStructure Lnet/minecraft/structure/StructureManager;readStructure(Ljava/io/InputStream;)Lnet/minecraft/structure/Structure;
    • createStructure

      public Structure createStructure(NbtCompound nbt)
      Mappings:
      Namespace Name Mixin selector
      official a Ldnw;a(Lpj;)Ldnv;
      intermediary method_21891 Lnet/minecraft/class_3485;method_21891(Lnet/minecraft/class_2487;)Lnet/minecraft/class_3499;
      named createStructure Lnet/minecraft/structure/StructureManager;createStructure(Lnet/minecraft/nbt/NbtCompound;)Lnet/minecraft/structure/Structure;
    • saveStructure

      public boolean saveStructure(Identifier id)
      Mappings:
      Namespace Name Mixin selector
      official c Ldnw;c(Laaj;)Z
      intermediary method_15093 Lnet/minecraft/class_3485;method_15093(Lnet/minecraft/class_2960;)Z
      named saveStructure Lnet/minecraft/structure/StructureManager;saveStructure(Lnet/minecraft/util/Identifier;)Z
    • method_44228

      public Path method_44228(Identifier identifier, String string)
      Mappings:
      Namespace Name Mixin selector
      official a Ldnw;a(Laaj;Ljava/lang/String;)Ljava/nio/file/Path;
      intermediary method_44228 Lnet/minecraft/class_3485;method_44228(Lnet/minecraft/class_2960;Ljava/lang/String;)Ljava/nio/file/Path;
      named method_44228 Lnet/minecraft/structure/StructureManager;method_44228(Lnet/minecraft/util/Identifier;Ljava/lang/String;)Ljava/nio/file/Path;
    • getStructurePath

      public static Path getStructurePath(Path path, Identifier id, String extension)
      Mappings:
      Namespace Name Mixin selector
      official a Ldnw;a(Ljava/nio/file/Path;Laaj;Ljava/lang/String;)Ljava/nio/file/Path;
      intermediary method_15085 Lnet/minecraft/class_3485;method_15085(Ljava/nio/file/Path;Lnet/minecraft/class_2960;Ljava/lang/String;)Ljava/nio/file/Path;
      named getStructurePath Lnet/minecraft/structure/StructureManager;getStructurePath(Ljava/nio/file/Path;Lnet/minecraft/util/Identifier;Ljava/lang/String;)Ljava/nio/file/Path;
    • getAndCheckStructurePath

      private static Path getAndCheckStructurePath(Path path, Identifier id, String extension)
      Mappings:
      Namespace Name Mixin selector
      official b Ldnw;b(Ljava/nio/file/Path;Laaj;Ljava/lang/String;)Ljava/nio/file/Path;
      intermediary method_15086 Lnet/minecraft/class_3485;method_15086(Ljava/nio/file/Path;Lnet/minecraft/class_2960;Ljava/lang/String;)Ljava/nio/file/Path;
      named getAndCheckStructurePath Lnet/minecraft/structure/StructureManager;getAndCheckStructurePath(Ljava/nio/file/Path;Lnet/minecraft/util/Identifier;Ljava/lang/String;)Ljava/nio/file/Path;
    • unloadStructure

      public void unloadStructure(Identifier id)
      Mappings:
      Namespace Name Mixin selector
      official d Ldnw;d(Laaj;)V
      intermediary method_15087 Lnet/minecraft/class_3485;method_15087(Lnet/minecraft/class_2960;)V
      named unloadStructure Lnet/minecraft/structure/StructureManager;unloadStructure(Lnet/minecraft/util/Identifier;)V