Class ShipwreckPieces.ShipwreckPiece
java.lang.Object
net.minecraft.world.level.levelgen.structure.StructurePiece
net.minecraft.world.level.levelgen.structure.TemplateStructurePiece
net.minecraft.world.level.levelgen.structure.ShipwreckPieces.ShipwreckPiece
- Enclosing class:
- ShipwreckPieces
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.world.level.levelgen.structure.StructurePiece
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
ConstructorDescriptionShipwreckPiece(ServerLevel p_163208_, CompoundTag p_163209_)
ShipwreckPiece(StructureManager p_72828_, ResourceLocation p_72829_, BlockPos p_72830_, Rotation p_72831_, boolean p_72832_)
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
addAdditionalSaveData(ServerLevel p_163211_, CompoundTag p_163212_)
protected void
handleDataMarker(String p_72844_, BlockPos p_72845_, ServerLevelAccessor p_72846_, Random p_72847_, BoundingBox p_72848_)
private static StructurePlaceSettings
makeSettings(Rotation p_163214_)
boolean
postProcess(WorldGenLevel p_72834_, StructureFeatureManager p_72835_, ChunkGenerator p_72836_, Random p_72837_, BoundingBox p_72838_, ChunkPos p_72839_, BlockPos p_72840_)
Methods inherited from class net.minecraft.world.level.levelgen.structure.TemplateStructurePiece
getRotation, makeTemplateLocation, move
Methods inherited from class net.minecraft.world.level.levelgen.structure.StructurePiece
addChildren, canBeReplaced, createChest, createChest, createDispenser, createTag, fillColumnDown, generateAirBox, generateBox, generateBox, generateBox, generateBox, generateMaybeBox, generateUpperHalfSphere, getBlock, getBoundingBox, getGenDepth, getLocatorPosition, getMirror, getNoiseEffect, getOrientation, getRandomHorizontalDirection, getType, getWorldPos, getWorldX, getWorldY, getWorldZ, isCloseToChunk, isInterior, isReplaceableByStructures, makeBoundingBox, maybeGenerateBlock, placeBlock, reorient, setOrientation
-
Field Details
-
isBeached
private final boolean isBeached
-
-
Constructor Details
-
ShipwreckPiece
public ShipwreckPiece(StructureManager p_72828_, ResourceLocation p_72829_, BlockPos p_72830_, Rotation p_72831_, boolean p_72832_) -
ShipwreckPiece
-
-
Method Details
-
addAdditionalSaveData
- Overrides:
addAdditionalSaveData
in classTemplateStructurePiece
-
makeSettings
-
handleDataMarker
protected void handleDataMarker(String p_72844_, BlockPos p_72845_, ServerLevelAccessor p_72846_, Random p_72847_, BoundingBox p_72848_)- Specified by:
handleDataMarker
in classTemplateStructurePiece
-
postProcess
public boolean postProcess(WorldGenLevel p_72834_, StructureFeatureManager p_72835_, ChunkGenerator p_72836_, Random p_72837_, BoundingBox p_72838_, ChunkPos p_72839_, BlockPos p_72840_)- Overrides:
postProcess
in classTemplateStructurePiece
-