Class StructureAccessor

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

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

    • world

      private final WorldAccess world
      Mappings:
      Namespace Name Mixin selector
      official a Lcbm;a:Lcaw;
      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

      private final GeneratorOptions options
      Mappings:
      Namespace Name Mixin selector
      official b Lcbm;b:Lcut;
      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

      private final StructureLocator locator
      Mappings:
      Namespace Name Mixin selector
      official c Lcbm;c:Ldfk;
      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

      public StructureAccessor(WorldAccess world, GeneratorOptions options, StructureLocator locator)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lcbm;<init>(Lcaw;Lcut;Ldfk;)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

      public StructureAccessor forRegion(ChunkRegion region)
      Mappings:
      Namespace Name Mixin selector
      official a Lcbm;a(Laed;)Lcbm;
      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;
    • method_41035

      public List<StructureStart> method_41035(ChunkSectionPos chunkSectionPos, Predicate<ConfiguredStructureFeature<?,?>> predicate)
      Mappings:
      Namespace Name Mixin selector
      official a Lcbm;a(Lhf;Ljava/util/function/Predicate;)Ljava/util/List;
      intermediary method_41035 Lnet/minecraft/class_5138;method_41035(Lnet/minecraft/class_4076;Ljava/util/function/Predicate;)Ljava/util/List;
      named method_41035 Lnet/minecraft/world/gen/StructureAccessor;method_41035(Lnet/minecraft/util/math/ChunkSectionPos;Ljava/util/function/Predicate;)Ljava/util/List;
    • getStructureStarts

      public List<StructureStart> getStructureStarts(ChunkSectionPos sectionPos, ConfiguredStructureFeature<?,?> configuredStructureFeature)
      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 Lcbm;a(Lhf;Lcwr;)Ljava/util/List;
      intermediary method_38853 Lnet/minecraft/class_5138;method_38853(Lnet/minecraft/class_4076;Lnet/minecraft/class_5312;)Ljava/util/List;
      named getStructureStarts Lnet/minecraft/world/gen/StructureAccessor;getStructureStarts(Lnet/minecraft/util/math/ChunkSectionPos;Lnet/minecraft/world/gen/feature/ConfiguredStructureFeature;)Ljava/util/List;
    • method_41032

      public void method_41032(ConfiguredStructureFeature<?,?> configuredStructureFeature, LongSet longSet, Consumer<StructureStart> consumer)
      Mappings:
      Namespace Name Mixin selector
      official a Lcbm;a(Lcwr;Lit/unimi/dsi/fastutil/longs/LongSet;Ljava/util/function/Consumer;)V
      intermediary method_41032 Lnet/minecraft/class_5138;method_41032(Lnet/minecraft/class_5312;Lit/unimi/dsi/fastutil/longs/LongSet;Ljava/util/function/Consumer;)V
      named method_41032 Lnet/minecraft/world/gen/StructureAccessor;method_41032(Lnet/minecraft/world/gen/feature/ConfiguredStructureFeature;Lit/unimi/dsi/fastutil/longs/LongSet;Ljava/util/function/Consumer;)V
    • getStructureStart

      @Nullable public @Nullable StructureStart getStructureStart(ChunkSectionPos pos, ConfiguredStructureFeature<?,?> configuredStructureFeature, StructureHolder holder)
      Mappings:
      Namespace Name Mixin selector
      official a Lcbm;a(Lhf;Lcwr;Lcqw;)Ldfr;
      intermediary method_26975 Lnet/minecraft/class_5138;method_26975(Lnet/minecraft/class_4076;Lnet/minecraft/class_5312;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/ConfiguredStructureFeature;Lnet/minecraft/world/StructureHolder;)Lnet/minecraft/structure/StructureStart;
    • setStructureStart

      public void setStructureStart(ChunkSectionPos pos, ConfiguredStructureFeature<?,?> configuredStructureFeature, StructureStart structureStart, StructureHolder holder)
      Mappings:
      Namespace Name Mixin selector
      official a Lcbm;a(Lhf;Lcwr;Ldfr;Lcqw;)V
      intermediary method_26976 Lnet/minecraft/class_5138;method_26976(Lnet/minecraft/class_4076;Lnet/minecraft/class_5312;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/ConfiguredStructureFeature;Lnet/minecraft/structure/StructureStart;Lnet/minecraft/world/StructureHolder;)V
    • addStructureReference

      public void addStructureReference(ChunkSectionPos pos, ConfiguredStructureFeature<?,?> configuredStructureFeature, long reference, StructureHolder holder)
      Mappings:
      Namespace Name Mixin selector
      official a Lcbm;a(Lhf;Lcwr;JLcqw;)V
      intermediary method_26973 Lnet/minecraft/class_5138;method_26973(Lnet/minecraft/class_4076;Lnet/minecraft/class_5312;JLnet/minecraft/class_2810;)V
      named addStructureReference Lnet/minecraft/world/gen/StructureAccessor;addStructureReference(Lnet/minecraft/util/math/ChunkSectionPos;Lnet/minecraft/world/gen/feature/ConfiguredStructureFeature;JLnet/minecraft/world/StructureHolder;)V
    • shouldGenerateStructures

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

      public StructureStart getStructureAt(BlockPos pos, ConfiguredStructureFeature<?,?> configuredStructureFeature)
      Mappings:
      Namespace Name Mixin selector
      official a Lcbm;a(Lgj;Lcwr;)Ldfr;
      intermediary method_28388 Lnet/minecraft/class_5138;method_28388(Lnet/minecraft/class_2338;Lnet/minecraft/class_5312;)Lnet/minecraft/class_3449;
      named getStructureAt Lnet/minecraft/world/gen/StructureAccessor;getStructureAt(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/world/gen/feature/ConfiguredStructureFeature;)Lnet/minecraft/structure/StructureStart;
    • method_41034

      public StructureStart method_41034(BlockPos blockPos, RegistryKey<ConfiguredStructureFeature<?,?>> registryKey)
      Mappings:
      Namespace Name Mixin selector
      official a Lcbm;a(Lgj;Lys;)Ldfr;
      intermediary method_41034 Lnet/minecraft/class_5138;method_41034(Lnet/minecraft/class_2338;Lnet/minecraft/class_5321;)Lnet/minecraft/class_3449;
      named method_41034 Lnet/minecraft/world/gen/StructureAccessor;method_41034(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/registry/RegistryKey;)Lnet/minecraft/structure/StructureStart;
    • getStructureContaining

      public StructureStart getStructureContaining(BlockPos pos, ConfiguredStructureFeature<?,?> configuredStructureFeature)
      Returns a structure that contains the given pos. Compared to getStructureAt(net.minecraft.util.math.BlockPos, net.minecraft.world.gen.feature.ConfiguredStructureFeature<?, ?>), 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 Lcbm;b(Lgj;Lcwr;)Ldfr;
      intermediary method_38854 Lnet/minecraft/class_5138;method_38854(Lnet/minecraft/class_2338;Lnet/minecraft/class_5312;)Lnet/minecraft/class_3449;
      named getStructureContaining Lnet/minecraft/world/gen/StructureAccessor;getStructureContaining(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/world/gen/feature/ConfiguredStructureFeature;)Lnet/minecraft/structure/StructureStart;
    • method_41033

      public boolean method_41033(BlockPos blockPos, StructureStart structureStart)
      Mappings:
      Namespace Name Mixin selector
      official a Lcbm;a(Lgj;Ldfr;)Z
      intermediary method_41033 Lnet/minecraft/class_5138;method_41033(Lnet/minecraft/class_2338;Lnet/minecraft/class_3449;)Z
      named method_41033 Lnet/minecraft/world/gen/StructureAccessor;method_41033(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/structure/StructureStart;)Z
    • hasStructureReferences

      public boolean hasStructureReferences(BlockPos pos)
      Mappings:
      Namespace Name Mixin selector
      official a Lcbm;a(Lgj;)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
    • method_41037

      public Map<ConfiguredStructureFeature<?,?>,LongSet> method_41037(BlockPos blockPos)
      Mappings:
      Namespace Name Mixin selector
      official b Lcbm;b(Lgj;)Ljava/util/Map;
      intermediary method_41037 Lnet/minecraft/class_5138;method_41037(Lnet/minecraft/class_2338;)Ljava/util/Map;
      named method_41037 Lnet/minecraft/world/gen/StructureAccessor;method_41037(Lnet/minecraft/util/math/BlockPos;)Ljava/util/Map;
    • getStructurePresence

      public StructurePresence getStructurePresence(ChunkPos chunkPos, ConfiguredStructureFeature<?,?> configuredStructureFeature, boolean skipExistingChunk)
      Mappings:
      Namespace Name Mixin selector
      official a Lcbm;a(Lcac;Lcwr;Z)Ldfl;
      intermediary method_39783 Lnet/minecraft/class_5138;method_39783(Lnet/minecraft/class_1923;Lnet/minecraft/class_5312;Z)Lnet/minecraft/class_6833;
      named getStructurePresence Lnet/minecraft/world/gen/StructureAccessor;getStructurePresence(Lnet/minecraft/util/math/ChunkPos;Lnet/minecraft/world/gen/feature/ConfiguredStructureFeature;Z)Lnet/minecraft/world/StructurePresence;
    • incrementReferences

      public void incrementReferences(StructureStart structureStart)
      Mappings:
      Namespace Name Mixin selector
      official a Lcbm;a(Ldfr;)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
    • method_41036

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