Class AdvancedMovingPoolElement
java.lang.Object
net.minecraft.world.level.levelgen.structure.pools.StructurePoolElement
com.pixelmonmod.pixelmon.world.structure.AdvancedMovingPoolElement
public class AdvancedMovingPoolElement
extends net.minecraft.world.level.levelgen.structure.pools.StructurePoolElement
-
Field Summary
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<AdvancedMovingPoolElement>
protected final net.minecraft.core.Holder<net.minecraft.world.level.levelgen.structure.templatesystem.StructureProcessorList>
protected final com.mojang.datafixers.util.Either<net.minecraft.resources.ResourceLocation,
net.minecraft.world.level.levelgen.structure.templatesystem.StructureTemplate> -
Constructor Summary
ModifierConstructorDescriptionprotected
AdvancedMovingPoolElement
(com.mojang.datafixers.util.Either<net.minecraft.resources.ResourceLocation, net.minecraft.world.level.levelgen.structure.templatesystem.StructureTemplate> p_210415_, net.minecraft.core.Holder<net.minecraft.world.level.levelgen.structure.templatesystem.StructureProcessorList> p_210416_, net.minecraft.world.level.levelgen.structure.pools.StructureTemplatePool.Projection p_210417_, Integer groundLevelDelta, Integer yHack, Boolean keepLiquids, Integer xHack) -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.world.level.levelgen.structure.BoundingBox
getBoundingBox
(net.minecraft.world.level.levelgen.structure.templatesystem.StructureTemplateManager p_227316_, net.minecraft.core.BlockPos p_227317_, net.minecraft.world.level.block.Rotation p_227318_) List<net.minecraft.world.level.levelgen.structure.templatesystem.StructureTemplate.StructureBlockInfo>
getDataMarkers
(net.minecraft.world.level.levelgen.structure.templatesystem.StructureTemplateManager p_227325_, net.minecraft.core.BlockPos p_227326_, net.minecraft.world.level.block.Rotation p_227327_, boolean p_227328_) int
protected net.minecraft.world.level.levelgen.structure.templatesystem.StructurePlaceSettings
getSettings
(net.minecraft.world.level.block.Rotation p_210421_, net.minecraft.world.level.levelgen.structure.BoundingBox p_210422_, boolean p_210423_) List<net.minecraft.world.level.levelgen.structure.templatesystem.StructureTemplate.StructureBlockInfo>
getShuffledJigsawBlocks
(net.minecraft.world.level.levelgen.structure.templatesystem.StructureTemplateManager p_227320_, net.minecraft.core.BlockPos p_227321_, net.minecraft.world.level.block.Rotation p_227322_, net.minecraft.util.RandomSource p_227323_) net.minecraft.core.Vec3i
getSize
(net.minecraft.world.level.levelgen.structure.templatesystem.StructureTemplateManager p_227313_, net.minecraft.world.level.block.Rotation p_227314_) net.minecraft.world.level.levelgen.structure.pools.StructurePoolElementType<?>
getType()
protected static <E extends AdvancedMovingPoolElement>
com.mojang.serialization.codecs.RecordCodecBuilder<E,Integer> protected static <E extends AdvancedMovingPoolElement>
com.mojang.serialization.codecs.RecordCodecBuilder<E,Boolean> boolean
place
(net.minecraft.world.level.levelgen.structure.templatesystem.StructureTemplateManager p_227302_, net.minecraft.world.level.WorldGenLevel p_227303_, net.minecraft.world.level.StructureManager p_227304_, net.minecraft.world.level.chunk.ChunkGenerator p_227305_, net.minecraft.core.BlockPos p_227306_, net.minecraft.core.BlockPos p_227307_, net.minecraft.world.level.block.Rotation p_227308_, net.minecraft.world.level.levelgen.structure.BoundingBox p_227309_, net.minecraft.util.RandomSource p_227310_, boolean p_227311_) protected static <E extends AdvancedMovingPoolElement>
com.mojang.serialization.codecs.RecordCodecBuilder<E,net.minecraft.core.Holder<net.minecraft.world.level.levelgen.structure.templatesystem.StructureProcessorList>> protected static <E extends AdvancedMovingPoolElement>
com.mojang.serialization.codecs.RecordCodecBuilder<E,com.mojang.datafixers.util.Either<net.minecraft.resources.ResourceLocation, net.minecraft.world.level.levelgen.structure.templatesystem.StructureTemplate>> toString()
protected static <E extends AdvancedMovingPoolElement>
com.mojang.serialization.codecs.RecordCodecBuilder<E,Integer> protected static <E extends AdvancedMovingPoolElement>
com.mojang.serialization.codecs.RecordCodecBuilder<E,Integer> Methods inherited from class net.minecraft.world.level.levelgen.structure.pools.StructurePoolElement
empty, feature, getProjection, handleDataMarker, legacy, legacy, list, projectionCodec, setProjection, single, single
-
Field Details
-
CODEC
-
template
protected final com.mojang.datafixers.util.Either<net.minecraft.resources.ResourceLocation,net.minecraft.world.level.levelgen.structure.templatesystem.StructureTemplate> template -
processors
protected final net.minecraft.core.Holder<net.minecraft.world.level.levelgen.structure.templatesystem.StructureProcessorList> processors
-
-
Constructor Details
-
AdvancedMovingPoolElement
protected AdvancedMovingPoolElement(com.mojang.datafixers.util.Either<net.minecraft.resources.ResourceLocation, net.minecraft.world.level.levelgen.structure.templatesystem.StructureTemplate> p_210415_, net.minecraft.core.Holder<net.minecraft.world.level.levelgen.structure.templatesystem.StructureProcessorList> p_210416_, net.minecraft.world.level.levelgen.structure.pools.StructureTemplatePool.Projection p_210417_, Integer groundLevelDelta, Integer yHack, Boolean keepLiquids, Integer xHack)
-
-
Method Details
-
processorsCodec
protected static <E extends AdvancedMovingPoolElement> com.mojang.serialization.codecs.RecordCodecBuilder<E,net.minecraft.core.Holder<net.minecraft.world.level.levelgen.structure.templatesystem.StructureProcessorList>> processorsCodec() -
templateCodec
protected static <E extends AdvancedMovingPoolElement> com.mojang.serialization.codecs.RecordCodecBuilder<E,com.mojang.datafixers.util.Either<net.minecraft.resources.ResourceLocation, templateCodec()net.minecraft.world.level.levelgen.structure.templatesystem.StructureTemplate>> -
groundLevelDeltaCodec
protected static <E extends AdvancedMovingPoolElement> com.mojang.serialization.codecs.RecordCodecBuilder<E,Integer> groundLevelDeltaCodec() -
yHackCodec
protected static <E extends AdvancedMovingPoolElement> com.mojang.serialization.codecs.RecordCodecBuilder<E,Integer> yHackCodec() -
xHackCodec
protected static <E extends AdvancedMovingPoolElement> com.mojang.serialization.codecs.RecordCodecBuilder<E,Integer> xHackCodec() -
keepLiquids
protected static <E extends AdvancedMovingPoolElement> com.mojang.serialization.codecs.RecordCodecBuilder<E,Boolean> keepLiquids() -
getGroundLevelDelta
public int getGroundLevelDelta()- Overrides:
getGroundLevelDelta
in classnet.minecraft.world.level.levelgen.structure.pools.StructurePoolElement
-
getSize
public net.minecraft.core.Vec3i getSize(net.minecraft.world.level.levelgen.structure.templatesystem.StructureTemplateManager p_227313_, net.minecraft.world.level.block.Rotation p_227314_) - Specified by:
getSize
in classnet.minecraft.world.level.levelgen.structure.pools.StructurePoolElement
-
getDataMarkers
public List<net.minecraft.world.level.levelgen.structure.templatesystem.StructureTemplate.StructureBlockInfo> getDataMarkers(net.minecraft.world.level.levelgen.structure.templatesystem.StructureTemplateManager p_227325_, net.minecraft.core.BlockPos p_227326_, net.minecraft.world.level.block.Rotation p_227327_, boolean p_227328_) -
getShuffledJigsawBlocks
public List<net.minecraft.world.level.levelgen.structure.templatesystem.StructureTemplate.StructureBlockInfo> getShuffledJigsawBlocks(net.minecraft.world.level.levelgen.structure.templatesystem.StructureTemplateManager p_227320_, net.minecraft.core.BlockPos p_227321_, net.minecraft.world.level.block.Rotation p_227322_, net.minecraft.util.RandomSource p_227323_) - Specified by:
getShuffledJigsawBlocks
in classnet.minecraft.world.level.levelgen.structure.pools.StructurePoolElement
-
getBoundingBox
public net.minecraft.world.level.levelgen.structure.BoundingBox getBoundingBox(net.minecraft.world.level.levelgen.structure.templatesystem.StructureTemplateManager p_227316_, net.minecraft.core.BlockPos p_227317_, net.minecraft.world.level.block.Rotation p_227318_) - Specified by:
getBoundingBox
in classnet.minecraft.world.level.levelgen.structure.pools.StructurePoolElement
-
place
public boolean place(net.minecraft.world.level.levelgen.structure.templatesystem.StructureTemplateManager p_227302_, net.minecraft.world.level.WorldGenLevel p_227303_, net.minecraft.world.level.StructureManager p_227304_, net.minecraft.world.level.chunk.ChunkGenerator p_227305_, net.minecraft.core.BlockPos p_227306_, net.minecraft.core.BlockPos p_227307_, net.minecraft.world.level.block.Rotation p_227308_, net.minecraft.world.level.levelgen.structure.BoundingBox p_227309_, net.minecraft.util.RandomSource p_227310_, boolean p_227311_) - Specified by:
place
in classnet.minecraft.world.level.levelgen.structure.pools.StructurePoolElement
-
getSettings
protected net.minecraft.world.level.levelgen.structure.templatesystem.StructurePlaceSettings getSettings(net.minecraft.world.level.block.Rotation p_210421_, net.minecraft.world.level.levelgen.structure.BoundingBox p_210422_, boolean p_210423_) -
getType
public net.minecraft.world.level.levelgen.structure.pools.StructurePoolElementType<?> getType()- Specified by:
getType
in classnet.minecraft.world.level.levelgen.structure.pools.StructurePoolElement
-
toString
-