Class FeatureJigsawPiece
- java.lang.Object
-
- net.minecraft.world.gen.feature.jigsaw.JigsawPiece
-
- net.minecraft.world.gen.feature.jigsaw.FeatureJigsawPiece
-
public class FeatureJigsawPiece extends JigsawPiece
-
-
Field Summary
Fields Modifier and Type Field Description static com.mojang.serialization.Codec<FeatureJigsawPiece>
CODEC
private CompoundNBT
defaultJigsawNBT
private java.util.function.Supplier<ConfiguredFeature<?,?>>
feature
-
Constructor Summary
Constructors Modifier Constructor Description protected
FeatureJigsawPiece(java.util.function.Supplier<ConfiguredFeature<?,?>> p_i242004_1_, JigsawPattern.PlacementBehaviour p_i242004_2_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private CompoundNBT
fillDefaultJigsawNBT()
MutableBoundingBox
getBoundingBox(TemplateManager p_214852_1_, BlockPos p_214852_2_, Rotation p_214852_3_)
java.util.List<Template.BlockInfo>
getShuffledJigsawBlocks(TemplateManager p_214849_1_, BlockPos p_214849_2_, Rotation p_214849_3_, java.util.Random p_214849_4_)
BlockPos
getSize(TemplateManager p_214868_1_, Rotation p_214868_2_)
IJigsawDeserializer<?>
getType()
boolean
place(TemplateManager p_230378_1_, ISeedReader p_230378_2_, StructureManager p_230378_3_, ChunkGenerator p_230378_4_, BlockPos p_230378_5_, BlockPos p_230378_6_, Rotation p_230378_7_, MutableBoundingBox p_230378_8_, java.util.Random p_230378_9_, boolean p_230378_10_)
java.lang.String
toString()
-
Methods inherited from class net.minecraft.world.gen.feature.jigsaw.JigsawPiece
empty, feature, getGroundLevelDelta, getProjection, handleDataMarker, legacy, legacy, list, projectionCodec, setProjection, single, single
-
-
-
-
Field Detail
-
CODEC
public static final com.mojang.serialization.Codec<FeatureJigsawPiece> CODEC
-
feature
private final java.util.function.Supplier<ConfiguredFeature<?,?>> feature
-
defaultJigsawNBT
private final CompoundNBT defaultJigsawNBT
-
-
Constructor Detail
-
FeatureJigsawPiece
protected FeatureJigsawPiece(java.util.function.Supplier<ConfiguredFeature<?,?>> p_i242004_1_, JigsawPattern.PlacementBehaviour p_i242004_2_)
-
-
Method Detail
-
fillDefaultJigsawNBT
private CompoundNBT fillDefaultJigsawNBT()
-
getSize
public BlockPos getSize(TemplateManager p_214868_1_, Rotation p_214868_2_)
-
getShuffledJigsawBlocks
public java.util.List<Template.BlockInfo> getShuffledJigsawBlocks(TemplateManager p_214849_1_, BlockPos p_214849_2_, Rotation p_214849_3_, java.util.Random p_214849_4_)
- Specified by:
getShuffledJigsawBlocks
in classJigsawPiece
-
getBoundingBox
public MutableBoundingBox getBoundingBox(TemplateManager p_214852_1_, BlockPos p_214852_2_, Rotation p_214852_3_)
- Specified by:
getBoundingBox
in classJigsawPiece
-
place
public boolean place(TemplateManager p_230378_1_, ISeedReader p_230378_2_, StructureManager p_230378_3_, ChunkGenerator p_230378_4_, BlockPos p_230378_5_, BlockPos p_230378_6_, Rotation p_230378_7_, MutableBoundingBox p_230378_8_, java.util.Random p_230378_9_, boolean p_230378_10_)
- Specified by:
place
in classJigsawPiece
-
getType
public IJigsawDeserializer<?> getType()
- Specified by:
getType
in classJigsawPiece
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-