public class JigsawPattern
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
JigsawPattern.PlacementBehaviour |
Modifier and Type | Field and Description |
---|---|
static JigsawPattern |
EMPTY |
private ResourceLocation |
fallback |
static JigsawPattern |
INVALID |
private java.util.List<JigsawPiece> |
jigsawPieces |
private int |
maxSize |
private ResourceLocation |
name |
private JigsawPattern.PlacementBehaviour |
placementBehaviour |
private com.google.common.collect.ImmutableList<com.mojang.datafixers.util.Pair<JigsawPiece,java.lang.Integer>> |
rawTemplates |
Constructor and Description |
---|
JigsawPattern(ResourceLocation nameIn,
ResourceLocation p_i51397_2_,
java.util.List<com.mojang.datafixers.util.Pair<JigsawPiece,java.lang.Integer>> p_i51397_3_,
JigsawPattern.PlacementBehaviour placementBehaviourIn) |
Modifier and Type | Method and Description |
---|---|
ResourceLocation |
getFallback() |
int |
getMaxSize(TemplateManager templateManagerIn) |
ResourceLocation |
getName() |
int |
getNumberOfPieces() |
JigsawPiece |
getRandomPiece(java.util.Random rand) |
java.util.List<JigsawPiece> |
getShuffledPieces(java.util.Random rand) |
public static final JigsawPattern EMPTY
public static final JigsawPattern INVALID
private final ResourceLocation name
private final com.google.common.collect.ImmutableList<com.mojang.datafixers.util.Pair<JigsawPiece,java.lang.Integer>> rawTemplates
private final java.util.List<JigsawPiece> jigsawPieces
private final ResourceLocation fallback
private final JigsawPattern.PlacementBehaviour placementBehaviour
private int maxSize
public JigsawPattern(ResourceLocation nameIn, ResourceLocation p_i51397_2_, java.util.List<com.mojang.datafixers.util.Pair<JigsawPiece,java.lang.Integer>> p_i51397_3_, JigsawPattern.PlacementBehaviour placementBehaviourIn)
public int getMaxSize(TemplateManager templateManagerIn)
public ResourceLocation getFallback()
public JigsawPiece getRandomPiece(java.util.Random rand)
public java.util.List<JigsawPiece> getShuffledPieces(java.util.Random rand)
public ResourceLocation getName()
public int getNumberOfPieces()