public class MovingJigsawPiece
extends net.minecraft.world.gen.feature.jigsaw.JigsawPiece
Modifier and Type | Field and Description |
---|---|
static com.mojang.serialization.Codec<MovingJigsawPiece> |
CODEC |
protected java.lang.Integer |
groundLevelDelta |
protected java.lang.Boolean |
keepLiquids |
protected java.util.function.Supplier<net.minecraft.world.gen.feature.template.StructureProcessorList> |
processors |
protected com.mojang.datafixers.util.Either<net.minecraft.util.ResourceLocation,net.minecraft.world.gen.feature.template.Template> |
template |
protected java.lang.Integer |
yHack |
Modifier | Constructor and Description |
---|---|
protected |
MovingJigsawPiece(com.mojang.datafixers.util.Either<net.minecraft.util.ResourceLocation,net.minecraft.world.gen.feature.template.Template> p_i242008_1_,
java.util.function.Supplier<net.minecraft.world.gen.feature.template.StructureProcessorList> p_i242008_2_,
net.minecraft.world.gen.feature.jigsaw.JigsawPattern.PlacementBehaviour p_i242008_3_,
java.lang.Integer groundLevelDelta,
java.lang.Integer yHack,
java.lang.Boolean keepLiquids) |
|
MovingJigsawPiece(net.minecraft.world.gen.feature.template.Template p_i242009_1_) |
Modifier and Type | Method and Description |
---|---|
net.minecraft.util.math.MutableBoundingBox |
getBoundingBox(net.minecraft.world.gen.feature.template.TemplateManager p_214852_1_,
net.minecraft.util.math.BlockPos p_214852_2_,
net.minecraft.util.Rotation p_214852_3_) |
java.util.List<net.minecraft.world.gen.feature.template.Template.BlockInfo> |
getDataMarkers(net.minecraft.world.gen.feature.template.TemplateManager p_214857_1_,
net.minecraft.util.math.BlockPos p_214857_2_,
net.minecraft.util.Rotation p_214857_3_,
boolean p_214857_4_) |
int |
getGroundLevelDelta() |
protected net.minecraft.world.gen.feature.template.PlacementSettings |
getSettings(net.minecraft.util.Rotation p_230379_1_,
net.minecraft.util.math.MutableBoundingBox p_230379_2_,
boolean p_230379_3_) |
java.util.List<net.minecraft.world.gen.feature.template.Template.BlockInfo> |
getShuffledJigsawBlocks(net.minecraft.world.gen.feature.template.TemplateManager p_214849_1_,
net.minecraft.util.math.BlockPos p_214849_2_,
net.minecraft.util.Rotation p_214849_3_,
java.util.Random p_214849_4_) |
net.minecraft.world.gen.feature.jigsaw.IJigsawDeserializer<?> |
getType() |
protected static <E extends MovingJigsawPiece> |
groundLevelDeltaCodec() |
protected static <E extends MovingJigsawPiece> |
keepLiquids() |
static java.util.function.Function<net.minecraft.world.gen.feature.jigsaw.JigsawPattern.PlacementBehaviour,MovingJigsawPiece> |
moving(java.lang.String p_242859_0_,
int groundLevelDelta) |
boolean |
place(net.minecraft.world.gen.feature.template.TemplateManager p_230378_1_,
net.minecraft.world.ISeedReader p_230378_2_,
net.minecraft.world.gen.feature.structure.StructureManager p_230378_3_,
net.minecraft.world.gen.ChunkGenerator p_230378_4_,
net.minecraft.util.math.BlockPos p_230378_5_,
net.minecraft.util.math.BlockPos p_230378_6_,
net.minecraft.util.Rotation p_230378_7_,
net.minecraft.util.math.MutableBoundingBox p_230378_8_,
java.util.Random p_230378_9_,
boolean p_230378_10_) |
protected static <E extends MovingJigsawPiece> |
processorsCodec() |
protected static <E extends MovingJigsawPiece> |
templateCodec() |
java.lang.String |
toString() |
protected static <E extends MovingJigsawPiece> |
yHackCodec() |
public static final com.mojang.serialization.Codec<MovingJigsawPiece> CODEC
protected final java.lang.Integer groundLevelDelta
protected final java.lang.Integer yHack
protected final java.lang.Boolean keepLiquids
protected final com.mojang.datafixers.util.Either<net.minecraft.util.ResourceLocation,net.minecraft.world.gen.feature.template.Template> template
protected final java.util.function.Supplier<net.minecraft.world.gen.feature.template.StructureProcessorList> processors
protected MovingJigsawPiece(com.mojang.datafixers.util.Either<net.minecraft.util.ResourceLocation,net.minecraft.world.gen.feature.template.Template> p_i242008_1_, java.util.function.Supplier<net.minecraft.world.gen.feature.template.StructureProcessorList> p_i242008_2_, net.minecraft.world.gen.feature.jigsaw.JigsawPattern.PlacementBehaviour p_i242008_3_, java.lang.Integer groundLevelDelta, java.lang.Integer yHack, java.lang.Boolean keepLiquids)
public MovingJigsawPiece(net.minecraft.world.gen.feature.template.Template p_i242009_1_)
public static java.util.function.Function<net.minecraft.world.gen.feature.jigsaw.JigsawPattern.PlacementBehaviour,MovingJigsawPiece> moving(java.lang.String p_242859_0_, int groundLevelDelta)
protected static <E extends MovingJigsawPiece> com.mojang.serialization.codecs.RecordCodecBuilder<E,java.util.function.Supplier<net.minecraft.world.gen.feature.template.StructureProcessorList>> processorsCodec()
protected static <E extends MovingJigsawPiece> com.mojang.serialization.codecs.RecordCodecBuilder<E,java.lang.Integer> groundLevelDeltaCodec()
protected static <E extends MovingJigsawPiece> com.mojang.serialization.codecs.RecordCodecBuilder<E,java.lang.Integer> yHackCodec()
protected static <E extends MovingJigsawPiece> com.mojang.serialization.codecs.RecordCodecBuilder<E,java.lang.Boolean> keepLiquids()
protected static <E extends MovingJigsawPiece> com.mojang.serialization.codecs.RecordCodecBuilder<E,com.mojang.datafixers.util.Either<net.minecraft.util.ResourceLocation,net.minecraft.world.gen.feature.template.Template>> templateCodec()
public int getGroundLevelDelta()
getGroundLevelDelta
in class net.minecraft.world.gen.feature.jigsaw.JigsawPiece
public java.util.List<net.minecraft.world.gen.feature.template.Template.BlockInfo> getDataMarkers(net.minecraft.world.gen.feature.template.TemplateManager p_214857_1_, net.minecraft.util.math.BlockPos p_214857_2_, net.minecraft.util.Rotation p_214857_3_, boolean p_214857_4_)
public java.util.List<net.minecraft.world.gen.feature.template.Template.BlockInfo> getShuffledJigsawBlocks(net.minecraft.world.gen.feature.template.TemplateManager p_214849_1_, net.minecraft.util.math.BlockPos p_214849_2_, net.minecraft.util.Rotation p_214849_3_, java.util.Random p_214849_4_)
getShuffledJigsawBlocks
in class net.minecraft.world.gen.feature.jigsaw.JigsawPiece
public net.minecraft.util.math.MutableBoundingBox getBoundingBox(net.minecraft.world.gen.feature.template.TemplateManager p_214852_1_, net.minecraft.util.math.BlockPos p_214852_2_, net.minecraft.util.Rotation p_214852_3_)
getBoundingBox
in class net.minecraft.world.gen.feature.jigsaw.JigsawPiece
public boolean place(net.minecraft.world.gen.feature.template.TemplateManager p_230378_1_, net.minecraft.world.ISeedReader p_230378_2_, net.minecraft.world.gen.feature.structure.StructureManager p_230378_3_, net.minecraft.world.gen.ChunkGenerator p_230378_4_, net.minecraft.util.math.BlockPos p_230378_5_, net.minecraft.util.math.BlockPos p_230378_6_, net.minecraft.util.Rotation p_230378_7_, net.minecraft.util.math.MutableBoundingBox p_230378_8_, java.util.Random p_230378_9_, boolean p_230378_10_)
place
in class net.minecraft.world.gen.feature.jigsaw.JigsawPiece
protected net.minecraft.world.gen.feature.template.PlacementSettings getSettings(net.minecraft.util.Rotation p_230379_1_, net.minecraft.util.math.MutableBoundingBox p_230379_2_, boolean p_230379_3_)
public net.minecraft.world.gen.feature.jigsaw.IJigsawDeserializer<?> getType()
getType
in class net.minecraft.world.gen.feature.jigsaw.JigsawPiece
public java.lang.String toString()
toString
in class java.lang.Object