Class JigsawPiece
java.lang.Object
net.minecraft.world.gen.feature.jigsaw.JigsawPiece
- Direct Known Subclasses:
EmptyJigsawPiece
,FeatureJigsawPiece
,ListJigsawPiece
,SingleJigsawPiece
-
Field Summary
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<JigsawPiece>
private JigsawPattern.PlacementBehaviour
-
Constructor Summary
ModifierConstructorDescriptionprotected
JigsawPiece
(JigsawPattern.PlacementBehaviour p_i51398_1_) -
Method Summary
Modifier and TypeMethodDescriptionempty()
feature
(ConfiguredFeature<?, ?> p_242845_0_) abstract MutableBoundingBox
getBoundingBox
(TemplateManager p_214852_1_, BlockPos p_214852_2_, Rotation p_214852_3_) int
abstract List<Template.BlockInfo>
getShuffledJigsawBlocks
(TemplateManager p_214849_1_, BlockPos p_214849_2_, Rotation p_214849_3_, Random p_214849_4_) abstract IJigsawDeserializer<?>
getType()
void
handleDataMarker
(IWorld p_214846_1_, Template.BlockInfo p_214846_2_, BlockPos p_214846_3_, Rotation p_214846_4_, Random p_214846_5_, MutableBoundingBox p_214846_6_) legacy
(String p_242851_0_, StructureProcessorList p_242851_1_) list
(List<Function<JigsawPattern.PlacementBehaviour, ? extends JigsawPiece>> p_242853_0_) abstract 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_, Random p_230378_9_, boolean p_230378_10_) protected static <E extends JigsawPiece>
com.mojang.serialization.codecs.RecordCodecBuilder<E,JigsawPattern.PlacementBehaviour> setProjection
(JigsawPattern.PlacementBehaviour p_214845_1_) single
(String p_242861_0_, StructureProcessorList p_242861_1_)
-
Field Details
-
CODEC
-
projection
-
-
Constructor Details
-
JigsawPiece
-
-
Method Details
-
projectionCodec
protected static <E extends JigsawPiece> com.mojang.serialization.codecs.RecordCodecBuilder<E,JigsawPattern.PlacementBehaviour> projectionCodec() -
getShuffledJigsawBlocks
public abstract List<Template.BlockInfo> getShuffledJigsawBlocks(TemplateManager p_214849_1_, BlockPos p_214849_2_, Rotation p_214849_3_, Random p_214849_4_) -
getBoundingBox
public abstract MutableBoundingBox getBoundingBox(TemplateManager p_214852_1_, BlockPos p_214852_2_, Rotation p_214852_3_) -
place
public abstract 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_, Random p_230378_9_, boolean p_230378_10_) -
getType
-
handleDataMarker
public void handleDataMarker(IWorld p_214846_1_, Template.BlockInfo p_214846_2_, BlockPos p_214846_3_, Rotation p_214846_4_, Random p_214846_5_, MutableBoundingBox p_214846_6_) -
setProjection
-
getProjection
-
getGroundLevelDelta
public int getGroundLevelDelta() -
empty
-
legacy
public static Function<JigsawPattern.PlacementBehaviour,LegacySingleJigsawPiece> legacy(String p_242849_0_) -
legacy
public static Function<JigsawPattern.PlacementBehaviour,LegacySingleJigsawPiece> legacy(String p_242851_0_, StructureProcessorList p_242851_1_) -
single
public static Function<JigsawPattern.PlacementBehaviour,SingleJigsawPiece> single(String p_242859_0_) -
single
public static Function<JigsawPattern.PlacementBehaviour,SingleJigsawPiece> single(String p_242861_0_, StructureProcessorList p_242861_1_) -
feature
public static Function<JigsawPattern.PlacementBehaviour,FeatureJigsawPiece> feature(ConfiguredFeature<?, ?> p_242845_0_) -
list
public static Function<JigsawPattern.PlacementBehaviour,ListJigsawPiece> list(List<Function<JigsawPattern.PlacementBehaviour, ? extends JigsawPiece>> p_242853_0_)
-