public class GelJigsawPiece
extends net.minecraft.world.gen.feature.jigsaw.SingleJigsawPiece
SingleJigsawPiece
without the
BlockIgnoreStructureProcessor.AIR_AND_STRUCTURE_BLOCK
in favor of
RemoveGelStructureProcessor.INSTANCE
and including a way to determine
interactions with water.Modifier and Type | Field and Description |
---|---|
static com.mojang.serialization.Codec<GelJigsawPiece> |
CODEC |
static com.mojang.serialization.Codec<com.mojang.datafixers.util.Either<net.minecraft.util.ResourceLocation,net.minecraft.world.gen.feature.template.Template>> |
POOL_CODEC |
Constructor and Description |
---|
GelJigsawPiece(com.mojang.datafixers.util.Either<net.minecraft.util.ResourceLocation,net.minecraft.world.gen.feature.template.Template> location,
java.util.function.Supplier<net.minecraft.world.gen.feature.template.StructureProcessorList> processors,
net.minecraft.world.gen.feature.jigsaw.JigsawPattern.PlacementBehaviour placementBehavior,
boolean maintainWater,
boolean ignoreEntities) |
Modifier and Type | Method and Description |
---|---|
net.minecraft.util.ResourceLocation |
getLocation()
Gets the resource location of this piece
|
net.minecraft.world.gen.feature.jigsaw.IJigsawDeserializer<?> |
getType()
Used internally.
|
GelJigsawPiece |
maintainWater(boolean value)
Determins if blocks should become waterlogged when placed in water.
|
boolean |
place(net.minecraft.world.gen.feature.template.TemplateManager templateManager,
net.minecraft.world.ISeedReader seedReader,
net.minecraft.world.gen.feature.structure.StructureManager structureManager,
net.minecraft.world.gen.ChunkGenerator chunkGen,
net.minecraft.util.math.BlockPos pos,
net.minecraft.util.math.BlockPos pos2,
net.minecraft.util.Rotation rotation,
net.minecraft.util.math.MutableBoundingBox bounds,
java.util.Random rand,
boolean isLegacy,
AbstractGelStructurePiece gelStructurePiece)
Changes how the place function works to allow for data structure blocks.
|
GelJigsawPiece |
setIgnoreEntities(boolean value)
Prevents entities from generating with the structure.
|
java.lang.String |
toString() |
func_230378_a_, getBoundingBox, getDataMarkers, getJigsawBlocks
public static final com.mojang.serialization.Codec<com.mojang.datafixers.util.Either<net.minecraft.util.ResourceLocation,net.minecraft.world.gen.feature.template.Template>> POOL_CODEC
public static final com.mojang.serialization.Codec<GelJigsawPiece> CODEC
public GelJigsawPiece(com.mojang.datafixers.util.Either<net.minecraft.util.ResourceLocation,net.minecraft.world.gen.feature.template.Template> location, java.util.function.Supplier<net.minecraft.world.gen.feature.template.StructureProcessorList> processors, net.minecraft.world.gen.feature.jigsaw.JigsawPattern.PlacementBehaviour placementBehavior, boolean maintainWater, boolean ignoreEntities)
location
- : the structureprocessors
- placementBehavior
- maintainWater
- ignoreEntities
- public GelJigsawPiece maintainWater(boolean value)
value
- GelJigsawPiece
public GelJigsawPiece setIgnoreEntities(boolean value)
value
- GelJigsawPiece
public boolean place(net.minecraft.world.gen.feature.template.TemplateManager templateManager, net.minecraft.world.ISeedReader seedReader, net.minecraft.world.gen.feature.structure.StructureManager structureManager, net.minecraft.world.gen.ChunkGenerator chunkGen, net.minecraft.util.math.BlockPos pos, net.minecraft.util.math.BlockPos pos2, net.minecraft.util.Rotation rotation, net.minecraft.util.math.MutableBoundingBox bounds, java.util.Random rand, boolean isLegacy, AbstractGelStructurePiece gelStructurePiece)
templateManager
- seedReader
- structureManager
- chunkGen
- pos
- pos2
- rotation
- bounds
- rand
- isLegacy
- gelStructurePiece
- Boolean
public net.minecraft.util.ResourceLocation getLocation()
ResourceLocation
public net.minecraft.world.gen.feature.jigsaw.IJigsawDeserializer<?> getType()
getType
in class net.minecraft.world.gen.feature.jigsaw.SingleJigsawPiece
IJigsawDeserializer
public java.lang.String toString()
toString
in class net.minecraft.world.gen.feature.jigsaw.SingleJigsawPiece