Package net.minecraft.structure
Class StructureManager
java.lang.Object
net.minecraft.structure.StructureManager
public class StructureManager extends Object
- Mappings:
Namespace Name official cyj
intermediary net/minecraft/class_3485
named net/minecraft/structure/StructureManager
-
Field Summary
Fields Modifier and Type Field Description private com.mojang.datafixers.DataFixer
dataFixer
private Path
generatedPath
private static Logger
LOGGER
private ResourceManager
resourceManager
private Map<Identifier,Structure>
structures
-
Constructor Summary
Constructors Constructor Description StructureManager(ResourceManager resourceManager, LevelStorage.Session session, com.mojang.datafixers.DataFixer dataFixer)
-
Method Summary
Modifier and Type Method Description Structure
createStructure(CompoundTag tag)
private Path
getAndCheckStructurePath(Identifier id, String extension)
Structure
getStructure(Identifier id)
Structure
getStructureOrBlank(Identifier id)
Path
getStructurePath(Identifier id, String extension)
private Structure
loadStructureFromFile(Identifier id)
private Structure
loadStructureFromResource(Identifier id)
private Structure
readStructure(InputStream structureInputStream)
boolean
saveStructure(Identifier id)
void
setResourceManager(ResourceManager resourceManager)
void
unloadStructure(Identifier id)
-
Field Details
-
LOGGER
- Mappings:
Namespace Name Mixin selector official a
Lcyj;a:Lorg/apache/logging/log4j/Logger;
intermediary field_15514
Lnet/minecraft/class_3485;field_15514:Lorg/apache/logging/log4j/Logger;
named LOGGER
Lnet/minecraft/structure/StructureManager;LOGGER:Lorg/apache/logging/log4j/Logger;
-
structures
- Mappings:
Namespace Name Mixin selector official b
Lcyj;b: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 c
Lcyj;c: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
- Mappings:
Namespace Name Mixin selector official d
Lcyj;d:Lacx;
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
- Mappings:
Namespace Name Mixin selector official e
Lcyj;e: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;
-
-
Constructor Details
-
StructureManager
public StructureManager(ResourceManager resourceManager, LevelStorage.Session session, com.mojang.datafixers.DataFixer dataFixer)- Mappings:
Namespace Name Mixin selector official <init>
Lcyj;<init>(Lacx;Lddu$a;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
- Mappings:
Namespace Name Mixin selector official a
Lcyj;a(Lwb;)Lcyo;
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
- Mappings:
Namespace Name Mixin selector official b
Lcyj;b(Lwb;)Lcyo;
intermediary method_15094
Lnet/minecraft/class_3485;method_15094(Lnet/minecraft/class_2960;)Lnet/minecraft/class_3499;
named getStructure
Lnet/minecraft/structure/StructureManager;getStructure(Lnet/minecraft/util/Identifier;)Lnet/minecraft/structure/Structure;
-
setResourceManager
- Mappings:
Namespace Name Mixin selector official a
Lcyj;a(Lacx;)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
- Mappings:
Namespace Name Mixin selector official e
Lcyj;e(Lwb;)Lcyo;
intermediary method_15088
Lnet/minecraft/class_3485;method_15088(Lnet/minecraft/class_2960;)Lnet/minecraft/class_3499;
named loadStructureFromResource
Lnet/minecraft/structure/StructureManager;loadStructureFromResource(Lnet/minecraft/util/Identifier;)Lnet/minecraft/structure/Structure;
-
loadStructureFromFile
- Mappings:
Namespace Name Mixin selector official f
Lcyj;f(Lwb;)Lcyo;
intermediary method_15092
Lnet/minecraft/class_3485;method_15092(Lnet/minecraft/class_2960;)Lnet/minecraft/class_3499;
named loadStructureFromFile
Lnet/minecraft/structure/StructureManager;loadStructureFromFile(Lnet/minecraft/util/Identifier;)Lnet/minecraft/structure/Structure;
-
readStructure
- Throws:
IOException
- Mappings:
Namespace Name Mixin selector official a
Lcyj;a(Ljava/io/InputStream;)Lcyo;
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
- Mappings:
Namespace Name Mixin selector official a
Lcyj;a(Lmq;)Lcyo;
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/CompoundTag;)Lnet/minecraft/structure/Structure;
-
saveStructure
- Mappings:
Namespace Name Mixin selector official c
Lcyj;c(Lwb;)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
-
getStructurePath
- Mappings:
Namespace Name Mixin selector official a
Lcyj;a(Lwb;Ljava/lang/String;)Ljava/nio/file/Path;
intermediary method_15085
Lnet/minecraft/class_3485;method_15085(Lnet/minecraft/class_2960;Ljava/lang/String;)Ljava/nio/file/Path;
named getStructurePath
Lnet/minecraft/structure/StructureManager;getStructurePath(Lnet/minecraft/util/Identifier;Ljava/lang/String;)Ljava/nio/file/Path;
-
getAndCheckStructurePath
- Mappings:
Namespace Name Mixin selector official b
Lcyj;b(Lwb;Ljava/lang/String;)Ljava/nio/file/Path;
intermediary method_15086
Lnet/minecraft/class_3485;method_15086(Lnet/minecraft/class_2960;Ljava/lang/String;)Ljava/nio/file/Path;
named getAndCheckStructurePath
Lnet/minecraft/structure/StructureManager;getAndCheckStructurePath(Lnet/minecraft/util/Identifier;Ljava/lang/String;)Ljava/nio/file/Path;
-
unloadStructure
- Mappings:
Namespace Name Mixin selector official d
Lcyj;d(Lwb;)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
-