Class MovingPoolElement

java.lang.Object
net.minecraft.world.level.levelgen.structure.pools.StructurePoolElement
com.pixelmonmod.pixelmon.world.structure.MovingPoolElement

public class MovingPoolElement extends net.minecraft.world.level.levelgen.structure.pools.StructurePoolElement
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final com.mojang.serialization.Codec<MovingPoolElement>
     
    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

    Constructors
    Modifier
    Constructor
    Description
    protected
    MovingPoolElement(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)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    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_)
     
    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<?>
     
    protected static <E extends MovingPoolElement>
    com.mojang.serialization.codecs.RecordCodecBuilder<E,Integer>
     
    protected static <E extends MovingPoolElement>
    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 MovingPoolElement>
    com.mojang.serialization.codecs.RecordCodecBuilder<E,net.minecraft.core.Holder<net.minecraft.world.level.levelgen.structure.templatesystem.StructureProcessorList>>
     
    protected static <E extends MovingPoolElement>
    com.mojang.serialization.codecs.RecordCodecBuilder<E,com.mojang.datafixers.util.Either<net.minecraft.resources.ResourceLocation,net.minecraft.world.level.levelgen.structure.templatesystem.StructureTemplate>>
     
     
    protected static <E extends MovingPoolElement>
    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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • CODEC

      public static final com.mojang.serialization.Codec<MovingPoolElement> 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

    • MovingPoolElement

      protected MovingPoolElement(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)
  • Method Details

    • processorsCodec

      protected static <E extends MovingPoolElement> com.mojang.serialization.codecs.RecordCodecBuilder<E,net.minecraft.core.Holder<net.minecraft.world.level.levelgen.structure.templatesystem.StructureProcessorList>> processorsCodec()
    • templateCodec

      protected static <E extends MovingPoolElement> com.mojang.serialization.codecs.RecordCodecBuilder<E,com.mojang.datafixers.util.Either<net.minecraft.resources.ResourceLocation,net.minecraft.world.level.levelgen.structure.templatesystem.StructureTemplate>> templateCodec()
    • groundLevelDeltaCodec

      protected static <E extends MovingPoolElement> com.mojang.serialization.codecs.RecordCodecBuilder<E,Integer> groundLevelDeltaCodec()
    • yHackCodec

      protected static <E extends MovingPoolElement> com.mojang.serialization.codecs.RecordCodecBuilder<E,Integer> yHackCodec()
    • keepLiquids

      protected static <E extends MovingPoolElement> com.mojang.serialization.codecs.RecordCodecBuilder<E,Boolean> keepLiquids()
    • getGroundLevelDelta

      public int getGroundLevelDelta()
      Overrides:
      getGroundLevelDelta in class net.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 class net.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 class net.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 class net.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 class net.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 class net.minecraft.world.level.levelgen.structure.pools.StructurePoolElement
    • toString

      public String toString()
      Overrides:
      toString in class Object