Package net.minecraft.structure.pool
Class SinglePoolElement
java.lang.Object
net.minecraft.structure.pool.StructurePoolElement
net.minecraft.structure.pool.SinglePoolElement
- Direct Known Subclasses:
LegacySinglePoolElement
- Mappings:
Namespace Name named net/minecraft/structure/pool/SinglePoolElementintermediary net/minecraft/class_3781official ekw
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec<SinglePoolElement> protected final Optional<class_9822> protected final com.mojang.datafixers.util.Either<Identifier, StructureTemplate> private static final com.mojang.serialization.Codec<com.mojang.datafixers.util.Either<Identifier, StructureTemplate>> protected final RegistryEntry<StructureProcessorList> -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedSinglePoolElement(com.mojang.datafixers.util.Either<Identifier, StructureTemplate> location, RegistryEntry<StructureProcessorList> processors, StructurePool.Projection projection, Optional<class_9822> optional) -
Method Summary
Modifier and TypeMethodDescriptionprotected StructurePlacementDatacreatePlacementData(BlockRotation rotation, BlockBox box, class_9822 class_9822, boolean bool) 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) booleangenerate(StructureTemplateManager structureTemplateManager, StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, BlockPos pos, BlockPos pivot, BlockRotation rotation, BlockBox box, Random random, class_9822 class_9822, boolean bool) getBoundingBox(StructureTemplateManager structureTemplateManager, BlockPos pos, BlockRotation rotation) getDataStructureBlocks(StructureTemplateManager structureTemplateManager, BlockPos pos, BlockRotation rotation, boolean mirroredAndRotated) getStart(StructureTemplateManager structureTemplateManager, BlockRotation rotation) private StructureTemplategetStructure(StructureTemplateManager structureTemplateManager) getStructureBlockInfos(StructureTemplateManager structureTemplateManager, BlockPos pos, BlockRotation rotation, Random random) getType()protected static <E extends SinglePoolElement>
com.mojang.serialization.codecs.RecordCodecBuilder<E, com.mojang.datafixers.util.Either<Identifier, StructureTemplate>> protected static <E extends SinglePoolElement>
com.mojang.serialization.codecs.RecordCodecBuilder<E, Optional<class_9822>> protected static <E extends SinglePoolElement>
com.mojang.serialization.codecs.RecordCodecBuilder<E, RegistryEntry<StructureProcessorList>> (package private) static voidsort(List<StructureTemplate.StructureBlockInfo> blocks) toString()Methods inherited from class net.minecraft.structure.pool.StructurePoolElement
getGroundLevelDelta, getProjection, method_16756, method_61014, method_61016, ofEmpty, ofFeature, ofLegacySingle, ofList, ofProcessedLegacySingle, ofProcessedSingle, ofSingle, projectionGetter, setProjection
-
Field Details
-
LOCATION_CODEC
private static final com.mojang.serialization.Codec<com.mojang.datafixers.util.Either<Identifier,StructureTemplate>> LOCATION_CODEC- Mappings:
Namespace Name Mixin selector named LOCATION_CODECLnet/minecraft/structure/pool/SinglePoolElement;LOCATION_CODEC:Lcom/mojang/serialization/Codec;intermediary field_24951Lnet/minecraft/class_3781;field_24951:Lcom/mojang/serialization/Codec;official aLekw;a:Lcom/mojang/serialization/Codec;
-
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/structure/pool/SinglePoolElement;CODEC:Lcom/mojang/serialization/MapCodec;intermediary field_24952Lnet/minecraft/class_3781;field_24952:Lcom/mojang/serialization/MapCodec;official bLekw;b:Lcom/mojang/serialization/MapCodec;
-
location
- Mappings:
Namespace Name Mixin selector named locationLnet/minecraft/structure/pool/SinglePoolElement;location:Lcom/mojang/datafixers/util/Either;intermediary field_24015Lnet/minecraft/class_3781;field_24015:Lcom/mojang/datafixers/util/Either;official cLekw;c:Lcom/mojang/datafixers/util/Either;
-
processors
- Mappings:
Namespace Name Mixin selector named processorsLnet/minecraft/structure/pool/SinglePoolElement;processors:Lnet/minecraft/registry/entry/RegistryEntry;intermediary field_16674Lnet/minecraft/class_3781;field_16674:Lnet/minecraft/class_6880;official dLekw;d:Ljm;
-
field_52234
- Mappings:
Namespace Name Mixin selector named field_52234Lnet/minecraft/structure/pool/SinglePoolElement;field_52234:Ljava/util/Optional;intermediary field_52234Lnet/minecraft/class_3781;field_52234:Ljava/util/Optional;official eLekw;e:Ljava/util/Optional;
-
-
Constructor Details
-
SinglePoolElement
protected SinglePoolElement(com.mojang.datafixers.util.Either<Identifier, StructureTemplate> location, RegistryEntry<StructureProcessorList> processors, StructurePool.Projection projection, Optional<class_9822> optional) - 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;)Vintermediary <init>Lnet/minecraft/class_3781;<init>(Lcom/mojang/datafixers/util/Either;Lnet/minecraft/class_6880;Lnet/minecraft/class_3785$class_3786;Ljava/util/Optional;)Vofficial <init>Lekw;<init>(Lcom/mojang/datafixers/util/Either;Ljm;Lekz$a;Ljava/util/Optional;)V
-
-
Method Details
-
encodeLocation
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 encodeLocationLnet/minecraft/structure/pool/SinglePoolElement;encodeLocation(Lcom/mojang/datafixers/util/Either;Lcom/mojang/serialization/DynamicOps;Ljava/lang/Object;)Lcom/mojang/serialization/DataResult;intermediary method_28877Lnet/minecraft/class_3781;method_28877(Lcom/mojang/datafixers/util/Either;Lcom/mojang/serialization/DynamicOps;Ljava/lang/Object;)Lcom/mojang/serialization/DataResult;official aLekw;a(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 named processorsGetterLnet/minecraft/structure/pool/SinglePoolElement;processorsGetter()Lcom/mojang/serialization/codecs/RecordCodecBuilder;intermediary method_28880Lnet/minecraft/class_3781;method_28880()Lcom/mojang/serialization/codecs/RecordCodecBuilder;official bLekw;b()Lcom/mojang/serialization/codecs/RecordCodecBuilder;
-
method_61013
protected static <E extends SinglePoolElement> com.mojang.serialization.codecs.RecordCodecBuilder<E,Optional<class_9822>> method_61013()- Mappings:
Namespace Name Mixin selector named method_61013Lnet/minecraft/structure/pool/SinglePoolElement;method_61013()Lcom/mojang/serialization/codecs/RecordCodecBuilder;intermediary method_61013Lnet/minecraft/class_3781;method_61013()Lcom/mojang/serialization/codecs/RecordCodecBuilder;official cLekw;c()Lcom/mojang/serialization/codecs/RecordCodecBuilder;
-
locationGetter
protected static <E extends SinglePoolElement> com.mojang.serialization.codecs.RecordCodecBuilder<E,com.mojang.datafixers.util.Either<Identifier, locationGetter()StructureTemplate>> - Mappings:
Namespace Name Mixin selector named locationGetterLnet/minecraft/structure/pool/SinglePoolElement;locationGetter()Lcom/mojang/serialization/codecs/RecordCodecBuilder;intermediary method_28882Lnet/minecraft/class_3781;method_28882()Lcom/mojang/serialization/codecs/RecordCodecBuilder;official dLekw;d()Lcom/mojang/serialization/codecs/RecordCodecBuilder;
-
getStart
- Specified by:
getStartin classStructurePoolElement- Mappings:
Namespace Name Mixin selector named getStartLnet/minecraft/structure/pool/StructurePoolElement;getStart(Lnet/minecraft/structure/StructureTemplateManager;Lnet/minecraft/util/BlockRotation;)Lnet/minecraft/util/math/Vec3i;intermediary method_16601Lnet/minecraft/class_3784;method_16601(Lnet/minecraft/class_3485;Lnet/minecraft/class_2470;)Lnet/minecraft/class_2382;official aLekx;a(Lens;Ldmm;)Lkh;
-
getStructure
- Mappings:
Namespace Name Mixin selector named getStructureLnet/minecraft/structure/pool/SinglePoolElement;getStructure(Lnet/minecraft/structure/StructureTemplateManager;)Lnet/minecraft/structure/StructureTemplate;intermediary method_27233Lnet/minecraft/class_3781;method_27233(Lnet/minecraft/class_3485;)Lnet/minecraft/class_3499;official aLekw;a(Lens;)Lenr;
-
getDataStructureBlocks
public List<StructureTemplate.StructureBlockInfo> getDataStructureBlocks(StructureTemplateManager structureTemplateManager, BlockPos pos, BlockRotation rotation, boolean mirroredAndRotated) - Mappings:
Namespace Name Mixin selector named getDataStructureBlocksLnet/minecraft/structure/pool/SinglePoolElement;getDataStructureBlocks(Lnet/minecraft/structure/StructureTemplateManager;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/BlockRotation;Z)Ljava/util/List;intermediary method_16614Lnet/minecraft/class_3781;method_16614(Lnet/minecraft/class_3485;Lnet/minecraft/class_2338;Lnet/minecraft/class_2470;Z)Ljava/util/List;official aLekw;a(Lens;Ljd;Ldmm;Z)Ljava/util/List;
-
getStructureBlockInfos
public List<StructureTemplate.StructureBlockInfo> getStructureBlockInfos(StructureTemplateManager structureTemplateManager, BlockPos pos, BlockRotation rotation, Random random) - Specified by:
getStructureBlockInfosin classStructurePoolElement- Mappings:
Namespace Name Mixin selector named getStructureBlockInfosLnet/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_16627Lnet/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 aLekx;a(Lens;Ljd;Ldmm;Layw;)Ljava/util/List;
-
sort
- Mappings:
Namespace Name Mixin selector named sortLnet/minecraft/structure/pool/SinglePoolElement;sort(Ljava/util/List;)Vintermediary method_54782Lnet/minecraft/class_3781;method_54782(Ljava/util/List;)Vofficial aLekw;a(Ljava/util/List;)V
-
getBoundingBox
public BlockBox getBoundingBox(StructureTemplateManager structureTemplateManager, BlockPos pos, BlockRotation rotation) - Specified by:
getBoundingBoxin classStructurePoolElement- Mappings:
Namespace Name Mixin selector named getBoundingBoxLnet/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_16628Lnet/minecraft/class_3784;method_16628(Lnet/minecraft/class_3485;Lnet/minecraft/class_2338;Lnet/minecraft/class_2470;)Lnet/minecraft/class_3341;official aLekx;a(Lens;Ljd;Ldmm;)Lejh;
-
generate
public boolean generate(StructureTemplateManager structureTemplateManager, StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, BlockPos pos, BlockPos pivot, BlockRotation rotation, BlockBox box, Random random, class_9822 class_9822, boolean bool) - Specified by:
generatein classStructurePoolElement- Mappings:
Namespace Name Mixin selector named generateLnet/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/class_9822;Z)Zintermediary method_16626Lnet/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)Zofficial aLekx;a(Lens;Ldds;Lddq;Lduz;Ljd;Ljd;Ldmm;Lejh;Layw;Lenb;Z)Z
-
createPlacementData
protected StructurePlacementData createPlacementData(BlockRotation rotation, BlockBox box, class_9822 class_9822, boolean bool) - Mappings:
Namespace Name Mixin selector named createPlacementDataLnet/minecraft/structure/pool/SinglePoolElement;createPlacementData(Lnet/minecraft/util/BlockRotation;Lnet/minecraft/util/math/BlockBox;Lnet/minecraft/class_9822;Z)Lnet/minecraft/structure/StructurePlacementData;intermediary method_16616Lnet/minecraft/class_3781;method_16616(Lnet/minecraft/class_2470;Lnet/minecraft/class_3341;Lnet/minecraft/class_9822;Z)Lnet/minecraft/class_3492;official aLekw;a(Ldmm;Lejh;Lenb;Z)Lenn;
-
getType
- Specified by:
getTypein classStructurePoolElement- Mappings:
Namespace Name Mixin selector named getTypeLnet/minecraft/structure/pool/StructurePoolElement;getType()Lnet/minecraft/structure/pool/StructurePoolElementType;intermediary method_16757Lnet/minecraft/class_3784;method_16757()Lnet/minecraft/class_3816;official aLekx;a()Leky;
-
toString
-