Class StructureAccessor

java.lang.Object
net.minecraft.world.gen.StructureAccessor

public class StructureAccessor extends Object
Mappings:
Namespace Name
named net/minecraft/world/gen/StructureAccessor
intermediary net/minecraft/class_5138
official ddo
  • Field Details

    • world

      private final WorldAccess world
      Mappings:
      Namespace Name Mixin selector
      named world Lnet/minecraft/world/gen/StructureAccessor;world:Lnet/minecraft/world/WorldAccess;
      intermediary field_24404 Lnet/minecraft/class_5138;field_24404:Lnet/minecraft/class_1936;
      official a Lddo;a:Ldcv;
    • options

      private final GeneratorOptions options
      Mappings:
      Namespace Name Mixin selector
      named options Lnet/minecraft/world/gen/StructureAccessor;options:Lnet/minecraft/world/gen/GeneratorOptions;
      intermediary field_24497 Lnet/minecraft/class_5138;field_24497:Lnet/minecraft/class_5285;
      official b Lddo;b:Ldzt;
    • locator

      private final StructureLocator locator
      Mappings:
      Namespace Name Mixin selector
      named locator Lnet/minecraft/world/gen/StructureAccessor;locator:Lnet/minecraft/world/StructureLocator;
      intermediary field_36216 Lnet/minecraft/class_5138;field_36216:Lnet/minecraft/class_6832;
      official c Lddo;c:Lejn;
  • Constructor Details

    • StructureAccessor

      public StructureAccessor(WorldAccess world, GeneratorOptions options, StructureLocator locator)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/world/gen/StructureAccessor;<init>(Lnet/minecraft/world/WorldAccess;Lnet/minecraft/world/gen/GeneratorOptions;Lnet/minecraft/world/StructureLocator;)V
      intermediary <init> Lnet/minecraft/class_5138;<init>(Lnet/minecraft/class_1936;Lnet/minecraft/class_5285;Lnet/minecraft/class_6832;)V
      official <init> Lddo;<init>(Ldcv;Ldzt;Lejn;)V
  • Method Details

    • forRegion

      public StructureAccessor forRegion(ChunkRegion region)
      Mappings:
      Namespace Name Mixin selector
      named forRegion Lnet/minecraft/world/gen/StructureAccessor;forRegion(Lnet/minecraft/world/ChunkRegion;)Lnet/minecraft/world/gen/StructureAccessor;
      intermediary method_29951 Lnet/minecraft/class_5138;method_29951(Lnet/minecraft/class_3233;)Lnet/minecraft/class_5138;
      official a Lddo;a(Lara;)Lddo;
    • getStructureStarts

      public List<StructureStart> getStructureStarts(ChunkPos pos, Predicate<Structure> predicate)
      Mappings:
      Namespace Name Mixin selector
      named getStructureStarts Lnet/minecraft/world/gen/StructureAccessor;getStructureStarts(Lnet/minecraft/util/math/ChunkPos;Ljava/util/function/Predicate;)Ljava/util/List;
      intermediary method_41035 Lnet/minecraft/class_5138;method_41035(Lnet/minecraft/class_1923;Ljava/util/function/Predicate;)Ljava/util/List;
      official a Lddo;a(Ldcb;Ljava/util/function/Predicate;)Ljava/util/List;
    • getStructureStarts

      public List<StructureStart> getStructureStarts(ChunkSectionPos sectionPos, Structure structure)
      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
      named getStructureStarts Lnet/minecraft/world/gen/StructureAccessor;getStructureStarts(Lnet/minecraft/util/math/ChunkSectionPos;Lnet/minecraft/world/gen/structure/Structure;)Ljava/util/List;
      intermediary method_38853 Lnet/minecraft/class_5138;method_38853(Lnet/minecraft/class_4076;Lnet/minecraft/class_3195;)Ljava/util/List;
      official a Lddo;a(Lkf;Lejm;)Ljava/util/List;
    • acceptStructureStarts

      public void acceptStructureStarts(Structure structure, LongSet structureStartPositions, Consumer<StructureStart> consumer)
      Mappings:
      Namespace Name Mixin selector
      named acceptStructureStarts Lnet/minecraft/world/gen/StructureAccessor;acceptStructureStarts(Lnet/minecraft/world/gen/structure/Structure;Lit/unimi/dsi/fastutil/longs/LongSet;Ljava/util/function/Consumer;)V
      intermediary method_41032 Lnet/minecraft/class_5138;method_41032(Lnet/minecraft/class_3195;Lit/unimi/dsi/fastutil/longs/LongSet;Ljava/util/function/Consumer;)V
      official a Lddo;a(Lejm;Lit/unimi/dsi/fastutil/longs/LongSet;Ljava/util/function/Consumer;)V
    • getStructureStart

      @Nullable public @Nullable StructureStart getStructureStart(ChunkSectionPos pos, Structure structure, StructureHolder holder)
      Mappings:
      Namespace Name Mixin selector
      named getStructureStart Lnet/minecraft/world/gen/StructureAccessor;getStructureStart(Lnet/minecraft/util/math/ChunkSectionPos;Lnet/minecraft/world/gen/structure/Structure;Lnet/minecraft/world/StructureHolder;)Lnet/minecraft/structure/StructureStart;
      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;
      official a Lddo;a(Lkf;Lejm;Ldvs;)Leju;
    • setStructureStart

      public void setStructureStart(ChunkSectionPos pos, Structure structure, StructureStart structureStart, StructureHolder holder)
      Mappings:
      Namespace Name Mixin selector
      named setStructureStart Lnet/minecraft/world/gen/StructureAccessor;setStructureStart(Lnet/minecraft/util/math/ChunkSectionPos;Lnet/minecraft/world/gen/structure/Structure;Lnet/minecraft/structure/StructureStart;Lnet/minecraft/world/StructureHolder;)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
      official a Lddo;a(Lkf;Lejm;Leju;Ldvs;)V
    • addStructureReference

      public void addStructureReference(ChunkSectionPos pos, Structure structure, long reference, StructureHolder holder)
      Mappings:
      Namespace Name Mixin selector
      named addStructureReference Lnet/minecraft/world/gen/StructureAccessor;addStructureReference(Lnet/minecraft/util/math/ChunkSectionPos;Lnet/minecraft/world/gen/structure/Structure;JLnet/minecraft/world/StructureHolder;)V
      intermediary method_26973 Lnet/minecraft/class_5138;method_26973(Lnet/minecraft/class_4076;Lnet/minecraft/class_3195;JLnet/minecraft/class_2810;)V
      official a Lddo;a(Lkf;Lejm;JLdvs;)V
    • shouldGenerateStructures

      public boolean shouldGenerateStructures()
      Mappings:
      Namespace Name Mixin selector
      named shouldGenerateStructures Lnet/minecraft/world/gen/StructureAccessor;shouldGenerateStructures()Z
      intermediary method_27834 Lnet/minecraft/class_5138;method_27834()Z
      official a Lddo;a()Z
    • getStructureAt

      public StructureStart getStructureAt(BlockPos pos, Structure structure)
      Mappings:
      Namespace Name Mixin selector
      named getStructureAt Lnet/minecraft/world/gen/StructureAccessor;getStructureAt(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/world/gen/structure/Structure;)Lnet/minecraft/structure/StructureStart;
      intermediary method_28388 Lnet/minecraft/class_5138;method_28388(Lnet/minecraft/class_2338;Lnet/minecraft/class_3195;)Lnet/minecraft/class_3449;
      official a Lddo;a(Ljd;Lejm;)Leju;
    • getStructureContaining

      public StructureStart getStructureContaining(BlockPos pos, TagKey<Structure> tag)
      Mappings:
      Namespace Name Mixin selector
      named getStructureContaining Lnet/minecraft/world/gen/StructureAccessor;getStructureContaining(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/registry/tag/TagKey;)Lnet/minecraft/structure/StructureStart;
      intermediary method_57560 Lnet/minecraft/class_5138;method_57560(Lnet/minecraft/class_2338;Lnet/minecraft/class_6862;)Lnet/minecraft/class_3449;
      official a Lddo;a(Ljd;Lawt;)Leju;
    • getStructureContaining

      public StructureStart getStructureContaining(BlockPos pos, RegistryEntryList<Structure> structures)
      Mappings:
      Namespace Name Mixin selector
      named getStructureContaining Lnet/minecraft/world/gen/StructureAccessor;getStructureContaining(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/registry/entry/RegistryEntryList;)Lnet/minecraft/structure/StructureStart;
      intermediary method_41034 Lnet/minecraft/class_5138;method_41034(Lnet/minecraft/class_2338;Lnet/minecraft/class_6885;)Lnet/minecraft/class_3449;
      official a Lddo;a(Ljd;Ljq;)Leju;
    • getStructureContaining

      public StructureStart getStructureContaining(BlockPos pos, Predicate<RegistryEntry<Structure>> predicate)
      Mappings:
      Namespace Name Mixin selector
      named getStructureContaining Lnet/minecraft/world/gen/StructureAccessor;getStructureContaining(Lnet/minecraft/util/math/BlockPos;Ljava/util/function/Predicate;)Lnet/minecraft/structure/StructureStart;
      intermediary method_41413 Lnet/minecraft/class_5138;method_41413(Lnet/minecraft/class_2338;Ljava/util/function/Predicate;)Lnet/minecraft/class_3449;
      official a Lddo;a(Ljd;Ljava/util/function/Predicate;)Leju;
    • getStructureContaining

      public StructureStart getStructureContaining(BlockPos pos, Structure structure)
      Returns a structure that contains the given pos. Compared to getStructureAt(net.minecraft.util.math.BlockPos, net.minecraft.world.gen.structure.Structure), 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
      named getStructureContaining Lnet/minecraft/world/gen/StructureAccessor;getStructureContaining(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/world/gen/structure/Structure;)Lnet/minecraft/structure/StructureStart;
      intermediary method_38854 Lnet/minecraft/class_5138;method_38854(Lnet/minecraft/class_2338;Lnet/minecraft/class_3195;)Lnet/minecraft/class_3449;
      official b Lddo;b(Ljd;Lejm;)Leju;
    • structureContains

      public boolean structureContains(BlockPos pos, StructureStart structureStart)
      Mappings:
      Namespace Name Mixin selector
      named structureContains Lnet/minecraft/world/gen/StructureAccessor;structureContains(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/structure/StructureStart;)Z
      intermediary method_41033 Lnet/minecraft/class_5138;method_41033(Lnet/minecraft/class_2338;Lnet/minecraft/class_3449;)Z
      official a Lddo;a(Ljd;Leju;)Z
    • hasStructureReferences

      public boolean hasStructureReferences(BlockPos pos)
      Mappings:
      Namespace Name Mixin selector
      named hasStructureReferences Lnet/minecraft/world/gen/StructureAccessor;hasStructureReferences(Lnet/minecraft/util/math/BlockPos;)Z
      intermediary method_38852 Lnet/minecraft/class_5138;method_38852(Lnet/minecraft/class_2338;)Z
      official a Lddo;a(Ljd;)Z
    • getStructureReferences

      public Map<Structure,LongSet> getStructureReferences(BlockPos pos)
      Mappings:
      Namespace Name Mixin selector
      named getStructureReferences Lnet/minecraft/world/gen/StructureAccessor;getStructureReferences(Lnet/minecraft/util/math/BlockPos;)Ljava/util/Map;
      intermediary method_41037 Lnet/minecraft/class_5138;method_41037(Lnet/minecraft/class_2338;)Ljava/util/Map;
      official b Lddo;b(Ljd;)Ljava/util/Map;
    • getStructurePresence

      public StructurePresence getStructurePresence(ChunkPos chunkPos, Structure structure, StructurePlacement placement, boolean skipReferencedStructures)
      Mappings:
      Namespace Name Mixin selector
      named getStructurePresence Lnet/minecraft/world/gen/StructureAccessor;getStructurePresence(Lnet/minecraft/util/math/ChunkPos;Lnet/minecraft/world/gen/structure/Structure;Lnet/minecraft/world/gen/chunk/placement/StructurePlacement;Z)Lnet/minecraft/world/StructurePresence;
      intermediary method_39783 Lnet/minecraft/class_5138;method_39783(Lnet/minecraft/class_1923;Lnet/minecraft/class_3195;Lnet/minecraft/class_6874;Z)Lnet/minecraft/class_6833;
      official a Lddo;a(Ldcb;Lejm;Lekj;Z)Lejo;
    • incrementReferences

      public void incrementReferences(StructureStart structureStart)
      Mappings:
      Namespace Name Mixin selector
      named incrementReferences Lnet/minecraft/world/gen/StructureAccessor;incrementReferences(Lnet/minecraft/structure/StructureStart;)V
      intermediary method_39784 Lnet/minecraft/class_5138;method_39784(Lnet/minecraft/class_3449;)V
      official a Lddo;a(Leju;)V
    • getRegistryManager

      public DynamicRegistryManager getRegistryManager()
      Mappings:
      Namespace Name Mixin selector
      named getRegistryManager Lnet/minecraft/world/gen/StructureAccessor;getRegistryManager()Lnet/minecraft/registry/DynamicRegistryManager;
      intermediary method_41036 Lnet/minecraft/class_5138;method_41036()Lnet/minecraft/class_5455;
      official b Lddo;b()Lka;