Class OceanRuinPieces.Piece
- java.lang.Object
-
- net.minecraft.world.gen.feature.structure.StructurePiece
-
- net.minecraft.world.gen.feature.structure.TemplateStructurePiece
-
- net.minecraft.world.gen.feature.structure.OceanRuinPieces.Piece
-
- Enclosing class:
- OceanRuinPieces
public static class OceanRuinPieces.Piece extends TemplateStructurePiece
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class net.minecraft.world.gen.feature.structure.StructurePiece
StructurePiece.BlockSelector
-
-
Field Summary
Fields Modifier and Type Field Description private OceanRuinStructure.Type
biomeType
private float
integrity
private boolean
isLarge
private Rotation
rotation
private ResourceLocation
templateLocation
-
Fields inherited from class net.minecraft.world.gen.feature.structure.TemplateStructurePiece
placeSettings, template, templatePosition
-
Fields inherited from class net.minecraft.world.gen.feature.structure.StructurePiece
boundingBox, CAVE_AIR, genDepth
-
-
Constructor Summary
Constructors Constructor Description Piece(TemplateManager p_i50592_1_, CompoundNBT p_i50592_2_)
Piece(TemplateManager p_i48868_1_, ResourceLocation p_i48868_2_, BlockPos p_i48868_3_, Rotation p_i48868_4_, float p_i48868_5_, OceanRuinStructure.Type p_i48868_6_, boolean p_i48868_7_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
addAdditionalSaveData(CompoundNBT p_143011_1_)
private int
getHeight(BlockPos p_204035_1_, IBlockReader p_204035_2_, BlockPos p_204035_3_)
protected void
handleDataMarker(java.lang.String p_186175_1_, BlockPos p_186175_2_, IServerWorld p_186175_3_, java.util.Random p_186175_4_, MutableBoundingBox p_186175_5_)
private void
loadTemplate(TemplateManager p_204034_1_)
boolean
postProcess(ISeedReader p_230383_1_, StructureManager p_230383_2_, ChunkGenerator p_230383_3_, java.util.Random p_230383_4_, MutableBoundingBox p_230383_5_, ChunkPos p_230383_6_, BlockPos p_230383_7_)
-
Methods inherited from class net.minecraft.world.gen.feature.structure.TemplateStructurePiece
getRotation, move, setup
-
Methods inherited from class net.minecraft.world.gen.feature.structure.StructurePiece
addChildren, createChest, createChest, createDispenser, createTag, edgesLiquid, fillColumnDown, findCollisionPiece, generateAirBox, generateBox, generateBox, generateMaybeBox, generateUpperHalfSphere, getBlock, getBoundingBox, getGenDepth, getOrientation, getType, getWorldX, getWorldY, getWorldZ, isCloseToChunk, isInterior, maybeGenerateBlock, placeBlock, reorient, setOrientation
-
-
-
-
Field Detail
-
biomeType
private final OceanRuinStructure.Type biomeType
-
integrity
private final float integrity
-
templateLocation
private final ResourceLocation templateLocation
-
rotation
private final Rotation rotation
-
isLarge
private final boolean isLarge
-
-
Constructor Detail
-
Piece
public Piece(TemplateManager p_i48868_1_, ResourceLocation p_i48868_2_, BlockPos p_i48868_3_, Rotation p_i48868_4_, float p_i48868_5_, OceanRuinStructure.Type p_i48868_6_, boolean p_i48868_7_)
-
Piece
public Piece(TemplateManager p_i50592_1_, CompoundNBT p_i50592_2_)
-
-
Method Detail
-
loadTemplate
private void loadTemplate(TemplateManager p_204034_1_)
-
addAdditionalSaveData
protected void addAdditionalSaveData(CompoundNBT p_143011_1_)
- Overrides:
addAdditionalSaveData
in classTemplateStructurePiece
-
handleDataMarker
protected void handleDataMarker(java.lang.String p_186175_1_, BlockPos p_186175_2_, IServerWorld p_186175_3_, java.util.Random p_186175_4_, MutableBoundingBox p_186175_5_)
- Specified by:
handleDataMarker
in classTemplateStructurePiece
-
postProcess
public boolean postProcess(ISeedReader p_230383_1_, StructureManager p_230383_2_, ChunkGenerator p_230383_3_, java.util.Random p_230383_4_, MutableBoundingBox p_230383_5_, ChunkPos p_230383_6_, BlockPos p_230383_7_)
- Overrides:
postProcess
in classTemplateStructurePiece
-
getHeight
private int getHeight(BlockPos p_204035_1_, IBlockReader p_204035_2_, BlockPos p_204035_3_)
-
-