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.structures.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
(StructureTemplateManager p_229360_, CompoundTag p_229361_) ShipwreckPiece
(StructureTemplateManager p_229354_, ResourceLocation p_229355_, BlockPos p_229356_, Rotation p_229357_, boolean p_229358_) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
addAdditionalSaveData
(StructurePieceSerializationContext p_229373_, CompoundTag p_229374_) void
adjustPositionHeight
(int p_341929_) int
calculateBeachedPosition
(int p_341902_, RandomSource p_341891_) protected void
handleDataMarker
(String p_229376_, BlockPos p_229377_, ServerLevelAccessor p_229378_, RandomSource p_229379_, BoundingBox p_229380_) boolean
private static StructurePlaceSettings
makeSettings
(Rotation p_229371_) void
postProcess
(WorldGenLevel p_229363_, StructureManager p_229364_, ChunkGenerator p_229365_, RandomSource p_229366_, BoundingBox p_229367_, ChunkPos p_229368_, BlockPos p_229369_) 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
-
Field Details
-
isBeached
private final boolean isBeached
-
-
Constructor Details
-
ShipwreckPiece
public ShipwreckPiece(StructureTemplateManager p_229354_, ResourceLocation p_229355_, BlockPos p_229356_, Rotation p_229357_, boolean p_229358_) -
ShipwreckPiece
-
-
Method Details
-
addAdditionalSaveData
protected void addAdditionalSaveData(StructurePieceSerializationContext p_229373_, CompoundTag p_229374_) - Overrides:
addAdditionalSaveData
in classTemplateStructurePiece
-
makeSettings
-
handleDataMarker
protected void handleDataMarker(String p_229376_, BlockPos p_229377_, ServerLevelAccessor p_229378_, RandomSource p_229379_, BoundingBox p_229380_) - Specified by:
handleDataMarker
in classTemplateStructurePiece
-
postProcess
public void postProcess(WorldGenLevel p_229363_, StructureManager p_229364_, ChunkGenerator p_229365_, RandomSource p_229366_, BoundingBox p_229367_, ChunkPos p_229368_, BlockPos p_229369_) - Overrides:
postProcess
in classTemplateStructurePiece
-
isTooBigToFitInWorldGenRegion
public boolean isTooBigToFitInWorldGenRegion() -
calculateBeachedPosition
-
adjustPositionHeight
public void adjustPositionHeight(int p_341929_)
-