Class BuriedShipwreckPieces.BuriedShipwreckPiece

java.lang.Object
net.minecraft.world.level.levelgen.structure.StructurePiece
net.minecraft.world.level.levelgen.structure.TemplateStructurePiece
com.mrbysco.buriedwrecks.structure.BuriedShipwreckPieces.BuriedShipwreckPiece
Enclosing class:
BuriedShipwreckPieces

public static class BuriedShipwreckPieces.BuriedShipwreckPiece extends net.minecraft.world.level.levelgen.structure.TemplateStructurePiece
  • Nested Class Summary

    Nested classes/interfaces inherited from class net.minecraft.world.level.levelgen.structure.StructurePiece

    net.minecraft.world.level.levelgen.structure.StructurePiece.BlockSelector
  • Field Summary

    Fields inherited from class net.minecraft.world.level.levelgen.structure.TemplateStructurePiece

    placeSettings, template, templateName, templatePosition

    Fields inherited from class net.minecraft.world.level.levelgen.structure.StructurePiece

    boundingBox, CAVE_AIR, genDepth
  • Constructor Summary

    Constructors
    Constructor
    Description
    BuriedShipwreckPiece(net.minecraft.world.level.levelgen.structure.templatesystem.StructureTemplateManager templateManager, net.minecraft.nbt.CompoundTag tag)
     
    BuriedShipwreckPiece(net.minecraft.world.level.levelgen.structure.templatesystem.StructureTemplateManager templateManager, net.minecraft.resources.Identifier structureLocation, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.Rotation rotation, boolean beached)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    addAdditionalSaveData(net.minecraft.world.level.levelgen.structure.pieces.StructurePieceSerializationContext serializationContext, net.minecraft.nbt.CompoundTag tag)
     
    protected void
    handleDataMarker(String pName, net.minecraft.core.BlockPos pPos, net.minecraft.world.level.ServerLevelAccessor pLevel, net.minecraft.util.RandomSource pRandom, net.minecraft.world.level.levelgen.structure.BoundingBox pBox)
     
    void
    postProcess(net.minecraft.world.level.WorldGenLevel worldGenLevel, net.minecraft.world.level.StructureManager structureManager, net.minecraft.world.level.chunk.ChunkGenerator chunkGenerator, net.minecraft.util.RandomSource random, net.minecraft.world.level.levelgen.structure.BoundingBox boundingBox, net.minecraft.world.level.ChunkPos chunkPos, net.minecraft.core.BlockPos pos)
     

    Methods inherited from class net.minecraft.world.level.levelgen.structure.TemplateStructurePiece

    getRotation, makeTemplateLocation, move, placeSettings, template, templatePosition

    Methods inherited from class net.minecraft.world.level.levelgen.structure.StructurePiece

    addChildren, canBeReplaced, createBoundingBox, createChest, createChest, createDispenser, createTag, fillColumnDown, findCollisionPiece, generateAirBox, generateBox, generateBox, generateBox, generateBox, generateMaybeBox, generateUpperHalfSphere, getBlock, getBoundingBox, getGenDepth, getLocatorPosition, getMirror, getOrientation, getRandomHorizontalDirection, getType, getWorldPos, getWorldX, getWorldY, getWorldZ, isCloseToChunk, isInterior, isReplaceableByStructures, makeBoundingBox, maybeGenerateBlock, placeBlock, reorient, setGenDepth, setOrientation

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • BuriedShipwreckPiece

      public BuriedShipwreckPiece(net.minecraft.world.level.levelgen.structure.templatesystem.StructureTemplateManager templateManager, net.minecraft.resources.Identifier structureLocation, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.Rotation rotation, boolean beached)
    • BuriedShipwreckPiece

      public BuriedShipwreckPiece(net.minecraft.world.level.levelgen.structure.templatesystem.StructureTemplateManager templateManager, net.minecraft.nbt.CompoundTag tag)
  • Method Details

    • addAdditionalSaveData

      protected void addAdditionalSaveData(net.minecraft.world.level.levelgen.structure.pieces.StructurePieceSerializationContext serializationContext, net.minecraft.nbt.CompoundTag tag)
      Overrides:
      addAdditionalSaveData in class net.minecraft.world.level.levelgen.structure.TemplateStructurePiece
    • handleDataMarker

      protected void handleDataMarker(String pName, net.minecraft.core.BlockPos pPos, net.minecraft.world.level.ServerLevelAccessor pLevel, net.minecraft.util.RandomSource pRandom, net.minecraft.world.level.levelgen.structure.BoundingBox pBox)
      Specified by:
      handleDataMarker in class net.minecraft.world.level.levelgen.structure.TemplateStructurePiece
    • postProcess

      public void postProcess(net.minecraft.world.level.WorldGenLevel worldGenLevel, net.minecraft.world.level.StructureManager structureManager, net.minecraft.world.level.chunk.ChunkGenerator chunkGenerator, net.minecraft.util.RandomSource random, net.minecraft.world.level.levelgen.structure.BoundingBox boundingBox, net.minecraft.world.level.ChunkPos chunkPos, net.minecraft.core.BlockPos pos)
      Overrides:
      postProcess in class net.minecraft.world.level.levelgen.structure.TemplateStructurePiece