Package net.minecraft.world.gen
Class StructureAccessor
java.lang.Object
net.minecraft.world.gen.StructureAccessor
- Mappings:
Namespace Name official cau
intermediary net/minecraft/class_5138
named net/minecraft/world/gen/StructureAccessor
-
Field Summary
Modifier and TypeFieldDescriptionprivate final StructureLocator
private final GeneratorOptions
private final WorldAccess
-
Constructor Summary
ConstructorDescriptionStructureAccessor
(WorldAccess world, GeneratorOptions options, StructureLocator locator) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addStructureReference
(ChunkSectionPos pos, StructureFeature<?> feature, long reference, StructureHolder holder) forRegion
(ChunkRegion region) getStructureAt
(BlockPos pos, StructureFeature<?> structure) getStructureContaining
(BlockPos pos, StructureFeature<?> structure) Returns a structure that contains the givenpos
.getStructurePresence
(ChunkPos chunkPos, StructureFeature<?> structure, boolean skipExistingChunk) getStructureStart
(ChunkSectionPos pos, StructureFeature<?> feature, StructureHolder holder) List<? extends StructureStart<?>>
getStructureStarts
(ChunkSectionPos sectionPos, StructureFeature<?> feature) Returns a list of structure starts for this chunk.boolean
void
incrementReferences
(StructureStart<?> structureStart) void
setStructureStart
(ChunkSectionPos pos, StructureFeature<?> feature, StructureStart<?> structureStart, StructureHolder holder) boolean
-
Field Details
-
world
- Mappings:
Namespace Name Mixin selector official a
Lcau;a:Lcae;
intermediary field_24404
Lnet/minecraft/class_5138;field_24404:Lnet/minecraft/class_1936;
named world
Lnet/minecraft/world/gen/StructureAccessor;world:Lnet/minecraft/world/WorldAccess;
-
options
- Mappings:
Namespace Name Mixin selector official b
Lcau;b:Lcty;
intermediary field_24497
Lnet/minecraft/class_5138;field_24497:Lnet/minecraft/class_5285;
named options
Lnet/minecraft/world/gen/StructureAccessor;options:Lnet/minecraft/world/gen/GeneratorOptions;
-
locator
- Mappings:
Namespace Name Mixin selector official c
Lcau;c:Ldfc;
intermediary field_36216
Lnet/minecraft/class_5138;field_36216:Lnet/minecraft/class_6832;
named locator
Lnet/minecraft/world/gen/StructureAccessor;locator:Lnet/minecraft/world/StructureLocator;
-
-
Constructor Details
-
StructureAccessor
- Mappings:
Namespace Name Mixin selector official <init>
Lcau;<init>(Lcae;Lcty;Ldfc;)V
intermediary <init>
Lnet/minecraft/class_5138;<init>(Lnet/minecraft/class_1936;Lnet/minecraft/class_5285;Lnet/minecraft/class_6832;)V
named <init>
Lnet/minecraft/world/gen/StructureAccessor;<init>(Lnet/minecraft/world/WorldAccess;Lnet/minecraft/world/gen/GeneratorOptions;Lnet/minecraft/world/StructureLocator;)V
-
-
Method Details
-
forRegion
- Mappings:
Namespace Name Mixin selector official a
Lcau;a(Ladp;)Lcau;
intermediary method_29951
Lnet/minecraft/class_5138;method_29951(Lnet/minecraft/class_3233;)Lnet/minecraft/class_5138;
named forRegion
Lnet/minecraft/world/gen/StructureAccessor;forRegion(Lnet/minecraft/world/ChunkRegion;)Lnet/minecraft/world/gen/StructureAccessor;
-
getStructureStarts
public List<? extends StructureStart<?>> getStructureStarts(ChunkSectionPos sectionPos, StructureFeature<?> feature) Returns a list of structure starts for this chunk. The structure starts are computed from the structure references of the given section's chunk.- Returns:
- a list of structure starts for this chunk
- Mappings:
Namespace Name Mixin selector official a
Lcau;a(Lha;Lcyi;)Ljava/util/List;
intermediary method_38853
Lnet/minecraft/class_5138;method_38853(Lnet/minecraft/class_4076;Lnet/minecraft/class_3195;)Ljava/util/List;
named getStructureStarts
Lnet/minecraft/world/gen/StructureAccessor;getStructureStarts(Lnet/minecraft/util/math/ChunkSectionPos;Lnet/minecraft/world/gen/feature/StructureFeature;)Ljava/util/List;
-
getStructureStart
@Nullable public @Nullable StructureStart<?> getStructureStart(ChunkSectionPos pos, StructureFeature<?> feature, StructureHolder holder) - Mappings:
Namespace Name Mixin selector official a
Lcau;a(Lha;Lcyi;Lcqe;)Ldfh;
intermediary method_26975
Lnet/minecraft/class_5138;method_26975(Lnet/minecraft/class_4076;Lnet/minecraft/class_3195;Lnet/minecraft/class_2810;)Lnet/minecraft/class_3449;
named getStructureStart
Lnet/minecraft/world/gen/StructureAccessor;getStructureStart(Lnet/minecraft/util/math/ChunkSectionPos;Lnet/minecraft/world/gen/feature/StructureFeature;Lnet/minecraft/world/StructureHolder;)Lnet/minecraft/structure/StructureStart;
-
setStructureStart
public void setStructureStart(ChunkSectionPos pos, StructureFeature<?> feature, StructureStart<?> structureStart, StructureHolder holder) - Mappings:
Namespace Name Mixin selector official a
Lcau;a(Lha;Lcyi;Ldfh;Lcqe;)V
intermediary method_26976
Lnet/minecraft/class_5138;method_26976(Lnet/minecraft/class_4076;Lnet/minecraft/class_3195;Lnet/minecraft/class_3449;Lnet/minecraft/class_2810;)V
named setStructureStart
Lnet/minecraft/world/gen/StructureAccessor;setStructureStart(Lnet/minecraft/util/math/ChunkSectionPos;Lnet/minecraft/world/gen/feature/StructureFeature;Lnet/minecraft/structure/StructureStart;Lnet/minecraft/world/StructureHolder;)V
-
addStructureReference
public void addStructureReference(ChunkSectionPos pos, StructureFeature<?> feature, long reference, StructureHolder holder) - Mappings:
Namespace Name Mixin selector official a
Lcau;a(Lha;Lcyi;JLcqe;)V
intermediary method_26973
Lnet/minecraft/class_5138;method_26973(Lnet/minecraft/class_4076;Lnet/minecraft/class_3195;JLnet/minecraft/class_2810;)V
named addStructureReference
Lnet/minecraft/world/gen/StructureAccessor;addStructureReference(Lnet/minecraft/util/math/ChunkSectionPos;Lnet/minecraft/world/gen/feature/StructureFeature;JLnet/minecraft/world/StructureHolder;)V
-
shouldGenerateStructures
public boolean shouldGenerateStructures()- Mappings:
Namespace Name Mixin selector official a
Lcau;a()Z
intermediary method_27834
Lnet/minecraft/class_5138;method_27834()Z
named shouldGenerateStructures
Lnet/minecraft/world/gen/StructureAccessor;shouldGenerateStructures()Z
-
getStructureAt
- Mappings:
Namespace Name Mixin selector official a
Lcau;a(Lgh;Lcyi;)Ldfh;
intermediary method_28388
Lnet/minecraft/class_5138;method_28388(Lnet/minecraft/class_2338;Lnet/minecraft/class_3195;)Lnet/minecraft/class_3449;
named getStructureAt
Lnet/minecraft/world/gen/StructureAccessor;getStructureAt(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/world/gen/feature/StructureFeature;)Lnet/minecraft/structure/StructureStart;
-
getStructureContaining
Returns a structure that contains the givenpos
. Compared togetStructureAt(net.minecraft.util.math.BlockPos, net.minecraft.world.gen.feature.StructureFeature<?>)
, this does not return a structure if the given position is in the expanded bounding box of the structure but not in any child piece of it.- Returns:
- a structure that contains the given
pos
- Mappings:
Namespace Name Mixin selector official b
Lcau;b(Lgh;Lcyi;)Ldfh;
intermediary method_38854
Lnet/minecraft/class_5138;method_38854(Lnet/minecraft/class_2338;Lnet/minecraft/class_3195;)Lnet/minecraft/class_3449;
named getStructureContaining
Lnet/minecraft/world/gen/StructureAccessor;getStructureContaining(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/world/gen/feature/StructureFeature;)Lnet/minecraft/structure/StructureStart;
-
hasStructureReferences
- Mappings:
Namespace Name Mixin selector official a
Lcau;a(Lgh;)Z
intermediary method_38852
Lnet/minecraft/class_5138;method_38852(Lnet/minecraft/class_2338;)Z
named hasStructureReferences
Lnet/minecraft/world/gen/StructureAccessor;hasStructureReferences(Lnet/minecraft/util/math/BlockPos;)Z
-
getStructurePresence
public StructurePresence getStructurePresence(ChunkPos chunkPos, StructureFeature<?> structure, boolean skipExistingChunk) - Mappings:
Namespace Name Mixin selector official a
Lcau;a(Lbzk;Lcyi;Z)Ldfd;
intermediary method_39783
Lnet/minecraft/class_5138;method_39783(Lnet/minecraft/class_1923;Lnet/minecraft/class_3195;Z)Lnet/minecraft/class_6833;
named getStructurePresence
Lnet/minecraft/world/gen/StructureAccessor;getStructurePresence(Lnet/minecraft/util/math/ChunkPos;Lnet/minecraft/world/gen/feature/StructureFeature;Z)Lnet/minecraft/world/StructurePresence;
-
incrementReferences
- Mappings:
Namespace Name Mixin selector official a
Lcau;a(Ldfh;)V
intermediary method_39784
Lnet/minecraft/class_5138;method_39784(Lnet/minecraft/class_3449;)V
named incrementReferences
Lnet/minecraft/world/gen/StructureAccessor;incrementReferences(Lnet/minecraft/structure/StructureStart;)V
-