Class SinglePoolElement

java.lang.Object
net.minecraft.structure.pool.StructurePoolElement
net.minecraft.structure.pool.SinglePoolElement
Direct Known Subclasses:
LegacySinglePoolElement

public class SinglePoolElement extends StructurePoolElement
Mappings:
Namespace Name
official dkg
intermediary net/minecraft/class_3781
named net/minecraft/structure/pool/SinglePoolElement
  • Field Details

    • LOCATION_CODEC

      private static final com.mojang.serialization.Codec<com.mojang.datafixers.util.Either<Identifier,Structure>> LOCATION_CODEC
      Mappings:
      Namespace Name Mixin selector
      official a Ldkg;a:Lcom/mojang/serialization/Codec;
      intermediary field_24951 Lnet/minecraft/class_3781;field_24951:Lcom/mojang/serialization/Codec;
      named LOCATION_CODEC Lnet/minecraft/structure/pool/SinglePoolElement;LOCATION_CODEC:Lcom/mojang/serialization/Codec;
    • CODEC

      public static final com.mojang.serialization.Codec<SinglePoolElement> CODEC
      Mappings:
      Namespace Name Mixin selector
      official b Ldkg;b:Lcom/mojang/serialization/Codec;
      intermediary field_24952 Lnet/minecraft/class_3781;field_24952:Lcom/mojang/serialization/Codec;
      named CODEC Lnet/minecraft/structure/pool/SinglePoolElement;CODEC:Lcom/mojang/serialization/Codec;
    • location

      protected final com.mojang.datafixers.util.Either<Identifier,Structure> location
      Mappings:
      Namespace Name Mixin selector
      official c Ldkg;c:Lcom/mojang/datafixers/util/Either;
      intermediary field_24015 Lnet/minecraft/class_3781;field_24015:Lcom/mojang/datafixers/util/Either;
      named location Lnet/minecraft/structure/pool/SinglePoolElement;location:Lcom/mojang/datafixers/util/Either;
    • processors

      protected final RegistryEntry<StructureProcessorList> processors
      Mappings:
      Namespace Name Mixin selector
      official d Ldkg;d:Lgy;
      intermediary field_16674 Lnet/minecraft/class_3781;field_16674:Lnet/minecraft/class_6880;
      named processors Lnet/minecraft/structure/pool/SinglePoolElement;processors:Lnet/minecraft/util/registry/RegistryEntry;
  • Constructor Details

    • SinglePoolElement

      protected SinglePoolElement(com.mojang.datafixers.util.Either<Identifier,Structure> location, RegistryEntry<StructureProcessorList> processors, StructurePool.Projection projection)
      Mappings:
      Namespace Name Mixin selector
      official <init> Ldkg;<init>(Lcom/mojang/datafixers/util/Either;Lgy;Ldkj$a;)V
      intermediary <init> Lnet/minecraft/class_3781;<init>(Lcom/mojang/datafixers/util/Either;Lnet/minecraft/class_6880;Lnet/minecraft/class_3785$class_3786;)V
      named <init> Lnet/minecraft/structure/pool/SinglePoolElement;<init>(Lcom/mojang/datafixers/util/Either;Lnet/minecraft/util/registry/RegistryEntry;Lnet/minecraft/structure/pool/StructurePool$Projection;)V
    • SinglePoolElement

      public SinglePoolElement(Structure structure)
      Mappings:
      Namespace Name Mixin selector
      official <init> Ldkg;<init>(Ldms;)V
      intermediary <init> Lnet/minecraft/class_3781;<init>(Lnet/minecraft/class_3499;)V
      named <init> Lnet/minecraft/structure/pool/SinglePoolElement;<init>(Lnet/minecraft/structure/Structure;)V
  • Method Details

    • encodeLocation

      private static <T> com.mojang.serialization.DataResult<T> encodeLocation(com.mojang.datafixers.util.Either<Identifier,Structure> either, com.mojang.serialization.DynamicOps<T> dynamicOps, T t)
      Mappings:
      Namespace Name Mixin selector
      official a Ldkg;a(Lcom/mojang/datafixers/util/Either;Lcom/mojang/serialization/DynamicOps;Ljava/lang/Object;)Lcom/mojang/serialization/DataResult;
      intermediary method_28877 Lnet/minecraft/class_3781;method_28877(Lcom/mojang/datafixers/util/Either;Lcom/mojang/serialization/DynamicOps;Ljava/lang/Object;)Lcom/mojang/serialization/DataResult;
      named encodeLocation Lnet/minecraft/structure/pool/SinglePoolElement;encodeLocation(Lcom/mojang/datafixers/util/Either;Lcom/mojang/serialization/DynamicOps;Ljava/lang/Object;)Lcom/mojang/serialization/DataResult;
    • processorsGetter

      protected static <E extends SinglePoolElement> com.mojang.serialization.codecs.RecordCodecBuilder<E,RegistryEntry<StructureProcessorList>> processorsGetter()
      Mappings:
      Namespace Name Mixin selector
      official b Ldkg;b()Lcom/mojang/serialization/codecs/RecordCodecBuilder;
      intermediary method_28880 Lnet/minecraft/class_3781;method_28880()Lcom/mojang/serialization/codecs/RecordCodecBuilder;
      named processorsGetter Lnet/minecraft/structure/pool/SinglePoolElement;processorsGetter()Lcom/mojang/serialization/codecs/RecordCodecBuilder;
    • locationGetter

      protected static <E extends SinglePoolElement> com.mojang.serialization.codecs.RecordCodecBuilder<E,com.mojang.datafixers.util.Either<Identifier,Structure>> locationGetter()
      Mappings:
      Namespace Name Mixin selector
      official c Ldkg;c()Lcom/mojang/serialization/codecs/RecordCodecBuilder;
      intermediary method_28882 Lnet/minecraft/class_3781;method_28882()Lcom/mojang/serialization/codecs/RecordCodecBuilder;
      named locationGetter Lnet/minecraft/structure/pool/SinglePoolElement;locationGetter()Lcom/mojang/serialization/codecs/RecordCodecBuilder;
    • getStart

      public Vec3i getStart(StructureManager structureManager, BlockRotation rotation)
      Specified by:
      getStart in class StructurePoolElement
      Mappings:
      Namespace Name Mixin selector
      official a Ldkh;a(Ldmt;Lcnw;)Lho;
      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;
    • getStructure

      private Structure getStructure(StructureManager structureManager)
      Mappings:
      Namespace Name Mixin selector
      official a Ldkg;a(Ldmt;)Ldms;
      intermediary method_27233 Lnet/minecraft/class_3781;method_27233(Lnet/minecraft/class_3485;)Lnet/minecraft/class_3499;
      named getStructure Lnet/minecraft/structure/pool/SinglePoolElement;getStructure(Lnet/minecraft/structure/StructureManager;)Lnet/minecraft/structure/Structure;
    • getDataStructureBlocks

      public List<Structure.StructureBlockInfo> getDataStructureBlocks(StructureManager structureManager, BlockPos pos, BlockRotation rotation, boolean mirroredAndRotated)
      Mappings:
      Namespace Name Mixin selector
      official a Ldkg;a(Ldmt;Lgp;Lcnw;Z)Ljava/util/List;
      intermediary method_16614 Lnet/minecraft/class_3781;method_16614(Lnet/minecraft/class_3485;Lnet/minecraft/class_2338;Lnet/minecraft/class_2470;Z)Ljava/util/List;
      named getDataStructureBlocks Lnet/minecraft/structure/pool/SinglePoolElement;getDataStructureBlocks(Lnet/minecraft/structure/StructureManager;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/BlockRotation;Z)Ljava/util/List;
    • getStructureBlockInfos

      public List<Structure.StructureBlockInfo> getStructureBlockInfos(StructureManager structureManager, BlockPos pos, BlockRotation rotation, AbstractRandom random)
      Specified by:
      getStructureBlockInfos in class StructurePoolElement
      Mappings:
      Namespace Name Mixin selector
      official a Ldkh;a(Ldmt;Lgp;Lcnw;Lalf;)Ljava/util/List;
      intermediary method_16627 Lnet/minecraft/class_3784;method_16627(Lnet/minecraft/class_3485;Lnet/minecraft/class_2338;Lnet/minecraft/class_2470;Lnet/minecraft/class_5819;)Ljava/util/List;
      named getStructureBlockInfos Lnet/minecraft/structure/pool/StructurePoolElement;getStructureBlockInfos(Lnet/minecraft/structure/StructureManager;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/BlockRotation;Lnet/minecraft/util/math/random/AbstractRandom;)Ljava/util/List;
    • getBoundingBox

      public BlockBox getBoundingBox(StructureManager structureManager, BlockPos pos, BlockRotation rotation)
      Specified by:
      getBoundingBox in class StructurePoolElement
      Mappings:
      Namespace Name Mixin selector
      official a Ldkh;a(Ldmt;Lgp;Lcnw;)Ldis;
      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 boolean generate(StructureManager structureManager, StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, BlockPos pos, BlockPos blockPos, BlockRotation rotation, BlockBox box, AbstractRandom random, boolean keepJigsaws)
      Specified by:
      generate in class StructurePoolElement
      Mappings:
      Namespace Name Mixin selector
      official a Ldkh;a(Ldmt;Lcfs;Lcfr;Lcvl;Lgp;Lgp;Lcnw;Ldis;Lalf;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;Lnet/minecraft/class_5819;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;Lnet/minecraft/util/math/random/AbstractRandom;Z)Z
    • createPlacementData

      protected StructurePlacementData createPlacementData(BlockRotation rotation, BlockBox box, boolean keepJigsaws)
      Mappings:
      Namespace Name Mixin selector
      official a Ldkg;a(Lcnw;Ldis;Z)Ldmo;
      intermediary method_16616 Lnet/minecraft/class_3781;method_16616(Lnet/minecraft/class_2470;Lnet/minecraft/class_3341;Z)Lnet/minecraft/class_3492;
      named createPlacementData Lnet/minecraft/structure/pool/SinglePoolElement;createPlacementData(Lnet/minecraft/util/BlockRotation;Lnet/minecraft/util/math/BlockBox;Z)Lnet/minecraft/structure/StructurePlacementData;
    • getType

      public StructurePoolElementType<?> getType()
      Specified by:
      getType in class StructurePoolElement
      Mappings:
      Namespace Name Mixin selector
      official a Ldkh;a()Ldki;
      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;
    • toString

      public String toString()
      Overrides:
      toString in class Object