public class JigsawAccessHelper
extends java.lang.Object
Constructor and Description |
---|
JigsawAccessHelper() |
Modifier and Type | Method and Description |
---|---|
static void |
addIllagerStructures(net.minecraft.world.gen.feature.structure.Structure<?>... structures)
The
Feature.ILLAGER_STRUCTURES list allows for villages and pillager
outposts to generate terrain underneath them so they don't float. |
static void |
addToPool(net.minecraft.util.ResourceLocation pool,
java.util.List<com.mojang.datafixers.util.Pair<net.minecraft.world.gen.feature.jigsaw.JigsawPiece,java.lang.Integer>> pieces)
Adds the input jigsaw pieces to the pool passed in.
|
static net.minecraft.world.gen.feature.ConfiguredFeature<?,?> |
getFeatureJigsawPieceFeatures(net.minecraft.world.gen.feature.jigsaw.FeatureJigsawPiece piece)
Returns the feature stored in this piece.
|
static java.util.Map<net.minecraft.util.ResourceLocation,net.minecraft.world.gen.feature.jigsaw.JigsawPattern> |
getJigsawPatternRegistry()
Gives access to the registry that stores all jigsaw patterns.
|
static java.util.List<net.minecraft.world.gen.feature.jigsaw.JigsawPiece> |
getListJigsawPiecePieces(net.minecraft.world.gen.feature.jigsaw.ListJigsawPiece piece)
Returns the pieces stored in this piece.
|
static net.minecraft.util.ResourceLocation |
getSingleJigsawPieceLocation(net.minecraft.world.gen.feature.jigsaw.SingleJigsawPiece piece)
Gives the name of this piece.
|
static boolean |
removeFromListJigsaw(net.minecraft.world.gen.feature.jigsaw.ListJigsawPiece listJigsawPiece,
net.minecraft.world.gen.feature.Feature<?> feature)
Iterates through the ListJigsawPiece and removes all instances of pieceName
from it.
|
static boolean |
removeFromListJigsaw(net.minecraft.world.gen.feature.jigsaw.ListJigsawPiece listJigsawPiece,
net.minecraft.util.ResourceLocation pieceName)
Iterates through the ListJigsawPiece and removes all instances of pieceName
from it.
|
static void |
removeFromPool(net.minecraft.util.ResourceLocation pool,
net.minecraft.world.gen.feature.Feature<?> feature)
Removes the input feature from the pool passed in.
|
static void |
removeFromPool(net.minecraft.util.ResourceLocation pool,
net.minecraft.util.ResourceLocation pieceName)
Removes the input jigsaw piece from the pool passed in.
|
static void |
removePool(net.minecraft.util.ResourceLocation pool)
Removed the input registered jigsaw pool completely.
|
public static void addIllagerStructures(net.minecraft.world.gen.feature.structure.Structure<?>... structures)
Feature.ILLAGER_STRUCTURES
list allows for villages and pillager
outposts to generate terrain underneath them so they don't float. The area
that gets generated is based on the structure that starts the generation. In
villages, this would be the town center.structures
- public static void removePool(net.minecraft.util.ResourceLocation pool)
pool
- public static void addToPool(net.minecraft.util.ResourceLocation pool, java.util.List<com.mojang.datafixers.util.Pair<net.minecraft.world.gen.feature.jigsaw.JigsawPiece,java.lang.Integer>> pieces)
pool
- pieces
- JigsawPoolBuilder
public static void removeFromPool(net.minecraft.util.ResourceLocation pool, net.minecraft.util.ResourceLocation pieceName)
pool
- pieceName
- public static void removeFromPool(net.minecraft.util.ResourceLocation pool, net.minecraft.world.gen.feature.Feature<?> feature)
pool
- feature
- public static boolean removeFromListJigsaw(net.minecraft.world.gen.feature.jigsaw.ListJigsawPiece listJigsawPiece, net.minecraft.util.ResourceLocation pieceName)
listJigsawPiece
- pieceName
- removeFromPool(ResourceLocation, ResourceLocation)
public static boolean removeFromListJigsaw(net.minecraft.world.gen.feature.jigsaw.ListJigsawPiece listJigsawPiece, net.minecraft.world.gen.feature.Feature<?> feature)
listJigsawPiece
- feature
- removeFromPool(ResourceLocation, Feature)
public static java.util.Map<net.minecraft.util.ResourceLocation,net.minecraft.world.gen.feature.jigsaw.JigsawPattern> getJigsawPatternRegistry()
Map
public static net.minecraft.util.ResourceLocation getSingleJigsawPieceLocation(net.minecraft.world.gen.feature.jigsaw.SingleJigsawPiece piece)
piece
- ResourceLocation
public static java.util.List<net.minecraft.world.gen.feature.jigsaw.JigsawPiece> getListJigsawPiecePieces(net.minecraft.world.gen.feature.jigsaw.ListJigsawPiece piece)
piece
- List
public static net.minecraft.world.gen.feature.ConfiguredFeature<?,?> getFeatureJigsawPieceFeatures(net.minecraft.world.gen.feature.jigsaw.FeatureJigsawPiece piece)
piece
- ConfiguredFeature