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