Class JigsawPattern
java.lang.Object
net.minecraft.world.gen.feature.jigsaw.JigsawPattern
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<Supplier<JigsawPattern>>
static final com.mojang.serialization.Codec<JigsawPattern>
private final ResourceLocation
private static final org.apache.logging.log4j.Logger
private int
private final ResourceLocation
private final List<com.mojang.datafixers.util.Pair<JigsawPiece,
Integer>> private final List<JigsawPiece>
-
Constructor Summary
ConstructorDescriptionJigsawPattern
(ResourceLocation p_i51397_1_, ResourceLocation p_i51397_2_, List<com.mojang.datafixers.util.Pair<Function<JigsawPattern.PlacementBehaviour, ? extends JigsawPiece>, Integer>> p_i51397_3_, JigsawPattern.PlacementBehaviour p_i51397_4_) JigsawPattern
(ResourceLocation p_i242010_1_, ResourceLocation p_i242010_2_, List<com.mojang.datafixers.util.Pair<JigsawPiece, Integer>> p_i242010_3_) -
Method Summary
Modifier and TypeMethodDescriptionint
getMaxSize
(TemplateManager p_214945_1_) getName()
getRandomTemplate
(Random p_214944_1_) getShuffledTemplates
(Random p_214943_1_) int
size()
-
Field Details
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER -
DIRECT_CODEC
-
CODEC
-
name
-
rawTemplates
-
templates
-
fallback
-
maxSize
private int maxSize
-
-
Constructor Details
-
JigsawPattern
public JigsawPattern(ResourceLocation p_i242010_1_, ResourceLocation p_i242010_2_, List<com.mojang.datafixers.util.Pair<JigsawPiece, Integer>> p_i242010_3_) -
JigsawPattern
public JigsawPattern(ResourceLocation p_i51397_1_, ResourceLocation p_i51397_2_, List<com.mojang.datafixers.util.Pair<Function<JigsawPattern.PlacementBehaviour, ? extends JigsawPiece>, Integer>> p_i51397_3_, JigsawPattern.PlacementBehaviour p_i51397_4_)
-
-
Method Details
-
getMaxSize
-
getFallback
-
getRandomTemplate
-
getShuffledTemplates
-
getName
-
size
public int size()
-