Class StructurePoolElement

java.lang.Object
net.minecraft.structure.pool.StructurePoolElement
Direct Known Subclasses:
EmptyPoolElement, FeaturePoolElement, ListPoolElement, SinglePoolElement

public abstract class StructurePoolElement extends Object
Mappings:
Namespace Name
official dgq
intermediary net/minecraft/class_3784
named net/minecraft/structure/pool/StructurePoolElement
  • Field Details

    • CODEC

      public static final com.mojang.serialization.Codec<StructurePoolElement> CODEC
      Mappings:
      Namespace Name Mixin selector
      official e Ldgq;e:Lcom/mojang/serialization/Codec;
      intermediary field_24953 Lnet/minecraft/class_3784;field_24953:Lcom/mojang/serialization/Codec;
      named CODEC Lnet/minecraft/structure/pool/StructurePoolElement;CODEC:Lcom/mojang/serialization/Codec;
    • projection

      @Nullable private volatile StructurePool.Projection projection
      Mappings:
      Namespace Name Mixin selector
      official a Ldgq;a:Ldgs$a;
      intermediary field_16862 Lnet/minecraft/class_3784;field_16862:Lnet/minecraft/class_3785$class_3786;
      named projection Lnet/minecraft/structure/pool/StructurePoolElement;projection:Lnet/minecraft/structure/pool/StructurePool$Projection;
  • Constructor Details

    • StructurePoolElement

      protected StructurePoolElement(StructurePool.Projection projection)
      Mappings:
      Namespace Name Mixin selector
      official <init> Ldgq;<init>(Ldgs$a;)V
      intermediary <init> Lnet/minecraft/class_3784;<init>(Lnet/minecraft/class_3785$class_3786;)V
      named <init> Lnet/minecraft/structure/pool/StructurePoolElement;<init>(Lnet/minecraft/structure/pool/StructurePool$Projection;)V
  • Method Details

    • method_28883

      protected static <E extends StructurePoolElement> com.mojang.serialization.codecs.RecordCodecBuilder<E,StructurePool.Projection> method_28883()
      Mappings:
      Namespace Name Mixin selector
      official d Ldgq;d()Lcom/mojang/serialization/codecs/RecordCodecBuilder;
      intermediary method_28883 Lnet/minecraft/class_3784;method_28883()Lcom/mojang/serialization/codecs/RecordCodecBuilder;
      named method_28883 Lnet/minecraft/structure/pool/StructurePoolElement;method_28883()Lcom/mojang/serialization/codecs/RecordCodecBuilder;
    • getStart

      public abstract Vec3i getStart(StructureManager structureManager, BlockRotation rotation)
      Mappings:
      Namespace Name Mixin selector
      official a Ldgq;a(Ldhr;Lcjm;)Lhh;
      intermediary method_16601 Lnet/minecraft/class_3784;method_16601(Lnet/minecraft/class_3485;Lnet/minecraft/class_2470;)Lnet/minecraft/class_2382;
      named getStart Lnet/minecraft/structure/pool/StructurePoolElement;getStart(Lnet/minecraft/structure/StructureManager;Lnet/minecraft/util/BlockRotation;)Lnet/minecraft/util/math/Vec3i;
    • getStructureBlockInfos

      public abstract List<Structure.StructureBlockInfo> getStructureBlockInfos(StructureManager structureManager, BlockPos pos, BlockRotation rotation, Random random)
      Mappings:
      Namespace Name Mixin selector
      official a Ldgq;a(Ldhr;Lgj;Lcjm;Ljava/util/Random;)Ljava/util/List;
      intermediary method_16627 Lnet/minecraft/class_3784;method_16627(Lnet/minecraft/class_3485;Lnet/minecraft/class_2338;Lnet/minecraft/class_2470;Ljava/util/Random;)Ljava/util/List;
      named getStructureBlockInfos Lnet/minecraft/structure/pool/StructurePoolElement;getStructureBlockInfos(Lnet/minecraft/structure/StructureManager;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/BlockRotation;Ljava/util/Random;)Ljava/util/List;
    • getBoundingBox

      public abstract BlockBox getBoundingBox(StructureManager structureManager, BlockPos pos, BlockRotation rotation)
      Mappings:
      Namespace Name Mixin selector
      official a Ldgq;a(Ldhr;Lgj;Lcjm;)Ldeo;
      intermediary method_16628 Lnet/minecraft/class_3784;method_16628(Lnet/minecraft/class_3485;Lnet/minecraft/class_2338;Lnet/minecraft/class_2470;)Lnet/minecraft/class_3341;
      named getBoundingBox Lnet/minecraft/structure/pool/StructurePoolElement;getBoundingBox(Lnet/minecraft/structure/StructureManager;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/BlockRotation;)Lnet/minecraft/util/math/BlockBox;
    • generate

      public abstract boolean generate(StructureManager structureManager, StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, BlockPos pos, BlockPos blockPos, BlockRotation rotation, BlockBox box, Random random, boolean keepJigsaws)
      Mappings:
      Namespace Name Mixin selector
      official a Ldgq;a(Ldhr;Lcbn;Lcbm;Lcqr;Lgj;Lgj;Lcjm;Ldeo;Ljava/util/Random;Z)Z
      intermediary method_16626 Lnet/minecraft/class_3784;method_16626(Lnet/minecraft/class_3485;Lnet/minecraft/class_5281;Lnet/minecraft/class_5138;Lnet/minecraft/class_2794;Lnet/minecraft/class_2338;Lnet/minecraft/class_2338;Lnet/minecraft/class_2470;Lnet/minecraft/class_3341;Ljava/util/Random;Z)Z
      named generate Lnet/minecraft/structure/pool/StructurePoolElement;generate(Lnet/minecraft/structure/StructureManager;Lnet/minecraft/world/StructureWorldAccess;Lnet/minecraft/world/gen/StructureAccessor;Lnet/minecraft/world/gen/chunk/ChunkGenerator;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/BlockRotation;Lnet/minecraft/util/math/BlockBox;Ljava/util/Random;Z)Z
    • getType

      public abstract StructurePoolElementType<?> getType()
      Mappings:
      Namespace Name Mixin selector
      official a Ldgq;a()Ldgr;
      intermediary method_16757 Lnet/minecraft/class_3784;method_16757()Lnet/minecraft/class_3816;
      named getType Lnet/minecraft/structure/pool/StructurePoolElement;getType()Lnet/minecraft/structure/pool/StructurePoolElementType;
    • method_16756

      public void method_16756(WorldAccess world, Structure.StructureBlockInfo structureBlockInfo, BlockPos pos, BlockRotation rotation, Random random, BlockBox box)
      Mappings:
      Namespace Name Mixin selector
      official a Ldgq;a(Lcaw;Ldhw$c;Lgj;Lcjm;Ljava/util/Random;Ldeo;)V
      intermediary method_16756 Lnet/minecraft/class_3784;method_16756(Lnet/minecraft/class_1936;Lnet/minecraft/class_3499$class_3501;Lnet/minecraft/class_2338;Lnet/minecraft/class_2470;Ljava/util/Random;Lnet/minecraft/class_3341;)V
      named method_16756 Lnet/minecraft/structure/pool/StructurePoolElement;method_16756(Lnet/minecraft/world/WorldAccess;Lnet/minecraft/structure/Structure$StructureBlockInfo;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/BlockRotation;Ljava/util/Random;Lnet/minecraft/util/math/BlockBox;)V
    • setProjection

      public StructurePoolElement setProjection(StructurePool.Projection projection)
      Mappings:
      Namespace Name Mixin selector
      official a Ldgq;a(Ldgs$a;)Ldgq;
      intermediary method_16622 Lnet/minecraft/class_3784;method_16622(Lnet/minecraft/class_3785$class_3786;)Lnet/minecraft/class_3784;
      named setProjection Lnet/minecraft/structure/pool/StructurePoolElement;setProjection(Lnet/minecraft/structure/pool/StructurePool$Projection;)Lnet/minecraft/structure/pool/StructurePoolElement;
    • getProjection

      public StructurePool.Projection getProjection()
      Mappings:
      Namespace Name Mixin selector
      official e Ldgq;e()Ldgs$a;
      intermediary method_16624 Lnet/minecraft/class_3784;method_16624()Lnet/minecraft/class_3785$class_3786;
      named getProjection Lnet/minecraft/structure/pool/StructurePoolElement;getProjection()Lnet/minecraft/structure/pool/StructurePool$Projection;
    • getGroundLevelDelta

      public int getGroundLevelDelta()
      Mappings:
      Namespace Name Mixin selector
      official f Ldgq;f()I
      intermediary method_19308 Lnet/minecraft/class_3784;method_19308()I
      named getGroundLevelDelta Lnet/minecraft/structure/pool/StructurePoolElement;getGroundLevelDelta()I
    • ofEmpty

      Mappings:
      Namespace Name Mixin selector
      official g Ldgq;g()Ljava/util/function/Function;
      intermediary method_30438 Lnet/minecraft/class_3784;method_30438()Ljava/util/function/Function;
      named ofEmpty Lnet/minecraft/structure/pool/StructurePoolElement;ofEmpty()Ljava/util/function/Function;
    • ofLegacySingle

      Mappings:
      Namespace Name Mixin selector
      official a Ldgq;a(Ljava/lang/String;)Ljava/util/function/Function;
      intermediary method_30425 Lnet/minecraft/class_3784;method_30425(Ljava/lang/String;)Ljava/util/function/Function;
      named ofLegacySingle Lnet/minecraft/structure/pool/StructurePoolElement;ofLegacySingle(Ljava/lang/String;)Ljava/util/function/Function;
    • ofProcessedLegacySingle

      public static Function<StructurePool.Projection,LegacySinglePoolElement> ofProcessedLegacySingle(String id, RegistryEntry<StructureProcessorList> registryEntry)
      Mappings:
      Namespace Name Mixin selector
      official a Ldgq;a(Ljava/lang/String;Lgs;)Ljava/util/function/Function;
      intermediary method_30426 Lnet/minecraft/class_3784;method_30426(Ljava/lang/String;Lnet/minecraft/class_6880;)Ljava/util/function/Function;
      named ofProcessedLegacySingle Lnet/minecraft/structure/pool/StructurePoolElement;ofProcessedLegacySingle(Ljava/lang/String;Lnet/minecraft/util/registry/RegistryEntry;)Ljava/util/function/Function;
    • ofSingle

      Mappings:
      Namespace Name Mixin selector
      official b Ldgq;b(Ljava/lang/String;)Ljava/util/function/Function;
      intermediary method_30434 Lnet/minecraft/class_3784;method_30434(Ljava/lang/String;)Ljava/util/function/Function;
      named ofSingle Lnet/minecraft/structure/pool/StructurePoolElement;ofSingle(Ljava/lang/String;)Ljava/util/function/Function;
    • ofProcessedSingle

      public static Function<StructurePool.Projection,SinglePoolElement> ofProcessedSingle(String id, RegistryEntry<StructureProcessorList> registryEntry)
      Mappings:
      Namespace Name Mixin selector
      official b Ldgq;b(Ljava/lang/String;Lgs;)Ljava/util/function/Function;
      intermediary method_30435 Lnet/minecraft/class_3784;method_30435(Ljava/lang/String;Lnet/minecraft/class_6880;)Ljava/util/function/Function;
      named ofProcessedSingle Lnet/minecraft/structure/pool/StructurePoolElement;ofProcessedSingle(Ljava/lang/String;Lnet/minecraft/util/registry/RegistryEntry;)Ljava/util/function/Function;
    • ofFeature

      Mappings:
      Namespace Name Mixin selector
      official a Ldgq;a(Lgs;)Ljava/util/function/Function;
      intermediary method_30421 Lnet/minecraft/class_3784;method_30421(Lnet/minecraft/class_6880;)Ljava/util/function/Function;
      named ofFeature Lnet/minecraft/structure/pool/StructurePoolElement;ofFeature(Lnet/minecraft/util/registry/RegistryEntry;)Ljava/util/function/Function;
    • ofList

      Mappings:
      Namespace Name Mixin selector
      official a Ldgq;a(Ljava/util/List;)Ljava/util/function/Function;
      intermediary method_30429 Lnet/minecraft/class_3784;method_30429(Ljava/util/List;)Ljava/util/function/Function;
      named ofList Lnet/minecraft/structure/pool/StructurePoolElement;ofList(Ljava/util/List;)Ljava/util/function/Function;