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
named net/minecraft/structure/pool/SinglePoolElement
intermediary net/minecraft/class_3781
official eou
  • Field Details Link icon

    • JIGSAW_BLOCK_INFO_COMPARATOR Link icon

      private static final Comparator<StructureTemplate.JigsawBlockInfo> JIGSAW_BLOCK_INFO_COMPARATOR
      Mappings:
      Namespace Name Mixin selector
      named JIGSAW_BLOCK_INFO_COMPARATOR Lnet/minecraft/structure/pool/SinglePoolElement;JIGSAW_BLOCK_INFO_COMPARATOR:Ljava/util/Comparator;
      intermediary field_54804 Lnet/minecraft/class_3781;field_54804:Ljava/util/Comparator;
      official a Leou;a:Ljava/util/Comparator;
    • LOCATION_CODEC Link icon

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

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

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

      protected final RegistryEntry<StructureProcessorList> processors
      Mappings:
      Namespace Name Mixin selector
      named processors Lnet/minecraft/structure/pool/SinglePoolElement;processors:Lnet/minecraft/registry/entry/RegistryEntry;
      intermediary field_16674 Lnet/minecraft/class_3781;field_16674:Lnet/minecraft/class_6880;
      official d Leou;d:Ljr;
    • overrideLiquidSettings Link icon

      protected final Optional<StructureLiquidSettings> overrideLiquidSettings
      Mappings:
      Namespace Name Mixin selector
      named overrideLiquidSettings Lnet/minecraft/structure/pool/SinglePoolElement;overrideLiquidSettings:Ljava/util/Optional;
      intermediary field_52234 Lnet/minecraft/class_3781;field_52234:Ljava/util/Optional;
      official e Leou;e:Ljava/util/Optional;
  • Constructor Details Link icon

    • SinglePoolElement Link icon

      protected SinglePoolElement(com.mojang.datafixers.util.Either<Identifier,StructureTemplate> location, RegistryEntry<StructureProcessorList> processors, StructurePool.Projection projection, Optional<StructureLiquidSettings> overrideLiquidSettings)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/structure/pool/SinglePoolElement;<init>(Lcom/mojang/datafixers/util/Either;Lnet/minecraft/registry/entry/RegistryEntry;Lnet/minecraft/structure/pool/StructurePool$Projection;Ljava/util/Optional;)V
      intermediary <init> Lnet/minecraft/class_3781;<init>(Lcom/mojang/datafixers/util/Either;Lnet/minecraft/class_6880;Lnet/minecraft/class_3785$class_3786;Ljava/util/Optional;)V
      official <init> Leou;<init>(Lcom/mojang/datafixers/util/Either;Ljr;Leox$a;Ljava/util/Optional;)V
  • Method Details Link icon

    • encodeLocation Link icon

      private static <T> com.mojang.serialization.DataResult<T> encodeLocation(com.mojang.datafixers.util.Either<Identifier,StructureTemplate> location, com.mojang.serialization.DynamicOps<T> ops, T prefix)
      Mappings:
      Namespace Name Mixin selector
      named encodeLocation Lnet/minecraft/structure/pool/SinglePoolElement;encodeLocation(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;
      official a Leou;a(Lcom/mojang/datafixers/util/Either;Lcom/mojang/serialization/DynamicOps;Ljava/lang/Object;)Lcom/mojang/serialization/DataResult;
    • processorsGetter Link icon

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

      protected static <E extends SinglePoolElement> com.mojang.serialization.codecs.RecordCodecBuilder<E,Optional<StructureLiquidSettings>> overrideLiquidSettingsGetter()
      Mappings:
      Namespace Name Mixin selector
      named overrideLiquidSettingsGetter Lnet/minecraft/structure/pool/SinglePoolElement;overrideLiquidSettingsGetter()Lcom/mojang/serialization/codecs/RecordCodecBuilder;
      intermediary method_61013 Lnet/minecraft/class_3781;method_61013()Lcom/mojang/serialization/codecs/RecordCodecBuilder;
      official c Leou;c()Lcom/mojang/serialization/codecs/RecordCodecBuilder;
    • locationGetter Link icon

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

      public Vec3i getStart(StructureTemplateManager structureTemplateManager, BlockRotation rotation)
      Specified by:
      getStart in class StructurePoolElement
      Mappings:
      Namespace Name Mixin selector
      named getStart Lnet/minecraft/structure/pool/StructurePoolElement;getStart(Lnet/minecraft/structure/StructureTemplateManager;Lnet/minecraft/util/BlockRotation;)Lnet/minecraft/util/math/Vec3i;
      intermediary method_16601 Lnet/minecraft/class_3784;method_16601(Lnet/minecraft/class_3485;Lnet/minecraft/class_2470;)Lnet/minecraft/class_2382;
      official a Leov;a(Lerq;Ldqf;)Lkm;
    • getStructure Link icon

      private StructureTemplate getStructure(StructureTemplateManager structureTemplateManager)
      Mappings:
      Namespace Name Mixin selector
      named getStructure Lnet/minecraft/structure/pool/SinglePoolElement;getStructure(Lnet/minecraft/structure/StructureTemplateManager;)Lnet/minecraft/structure/StructureTemplate;
      intermediary method_27233 Lnet/minecraft/class_3781;method_27233(Lnet/minecraft/class_3485;)Lnet/minecraft/class_3499;
      official a Leou;a(Lerq;)Lerp;
    • getDataStructureBlocks Link icon

      public List<StructureTemplate.StructureBlockInfo> getDataStructureBlocks(StructureTemplateManager structureTemplateManager, BlockPos pos, BlockRotation rotation, boolean mirroredAndRotated)
      Mappings:
      Namespace Name Mixin selector
      named getDataStructureBlocks Lnet/minecraft/structure/pool/SinglePoolElement;getDataStructureBlocks(Lnet/minecraft/structure/StructureTemplateManager;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/BlockRotation;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;
      official a Leou;a(Lerq;Lji;Ldqf;Z)Ljava/util/List;
    • getStructureBlockInfos Link icon

      public List<StructureTemplate.JigsawBlockInfo> getStructureBlockInfos(StructureTemplateManager structureTemplateManager, BlockPos pos, BlockRotation rotation, Random random)
      Specified by:
      getStructureBlockInfos in class StructurePoolElement
      Mappings:
      Namespace Name Mixin selector
      named getStructureBlockInfos Lnet/minecraft/structure/pool/StructurePoolElement;getStructureBlockInfos(Lnet/minecraft/structure/StructureTemplateManager;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/BlockRotation;Lnet/minecraft/util/math/random/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;Lnet/minecraft/class_5819;)Ljava/util/List;
      official a Leov;a(Lerq;Lji;Ldqf;Lazh;)Ljava/util/List;
    • sort Link icon

      static void sort(List<StructureTemplate.JigsawBlockInfo> blocks)
      Mappings:
      Namespace Name Mixin selector
      named sort Lnet/minecraft/structure/pool/SinglePoolElement;sort(Ljava/util/List;)V
      intermediary method_54782 Lnet/minecraft/class_3781;method_54782(Ljava/util/List;)V
      official a Leou;a(Ljava/util/List;)V
    • getBoundingBox Link icon

      public BlockBox getBoundingBox(StructureTemplateManager structureTemplateManager, BlockPos pos, BlockRotation rotation)
      Specified by:
      getBoundingBox in class StructurePoolElement
      Mappings:
      Namespace Name Mixin selector
      named getBoundingBox Lnet/minecraft/structure/pool/StructurePoolElement;getBoundingBox(Lnet/minecraft/structure/StructureTemplateManager;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/BlockRotation;)Lnet/minecraft/util/math/BlockBox;
      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;
      official a Leov;a(Lerq;Lji;Ldqf;)Lenf;
    • generate Link icon

      public boolean generate(StructureTemplateManager structureTemplateManager, StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, BlockPos pos, BlockPos pivot, BlockRotation rotation, BlockBox box, Random random, StructureLiquidSettings liquidSettings, boolean keepJigsaws)
      Specified by:
      generate in class StructurePoolElement
      Mappings:
      Namespace Name Mixin selector
      named generate Lnet/minecraft/structure/pool/StructurePoolElement;generate(Lnet/minecraft/structure/StructureTemplateManager;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/Random;Lnet/minecraft/structure/StructureLiquidSettings;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;Lnet/minecraft/class_9822;Z)Z
      official a Leov;a(Lerq;Ldhh;Ldhf;Ldyu;Lji;Lji;Ldqf;Lenf;Lazh;Leqz;Z)Z
    • createPlacementData Link icon

      protected StructurePlacementData createPlacementData(BlockRotation rotation, BlockBox box, StructureLiquidSettings liquidSettings, boolean keepJigsaws)
      Mappings:
      Namespace Name Mixin selector
      named createPlacementData Lnet/minecraft/structure/pool/SinglePoolElement;createPlacementData(Lnet/minecraft/util/BlockRotation;Lnet/minecraft/util/math/BlockBox;Lnet/minecraft/structure/StructureLiquidSettings;Z)Lnet/minecraft/structure/StructurePlacementData;
      intermediary method_16616 Lnet/minecraft/class_3781;method_16616(Lnet/minecraft/class_2470;Lnet/minecraft/class_3341;Lnet/minecraft/class_9822;Z)Lnet/minecraft/class_3492;
      official a Leou;a(Ldqf;Lenf;Leqz;Z)Lerl;
    • getType Link icon

      public StructurePoolElementType<?> getType()
      Specified by:
      getType in class StructurePoolElement
      Mappings:
      Namespace Name Mixin selector
      named getType Lnet/minecraft/structure/pool/StructurePoolElement;getType()Lnet/minecraft/structure/pool/StructurePoolElementType;
      intermediary method_16757 Lnet/minecraft/class_3784;method_16757()Lnet/minecraft/class_3816;
      official a Leov;a()Leow;
    • toString Link icon

      public String toString()
      Overrides:
      toString in class Object