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.Constructor and Description |
---|
GelJigsawPiece(com.mojang.datafixers.Dynamic<?> dyn)
Used internally for deserialization
|
GelJigsawPiece(net.minecraft.util.ResourceLocation location) |
GelJigsawPiece(net.minecraft.util.ResourceLocation location,
java.util.List<net.minecraft.world.gen.feature.template.StructureProcessor> processors) |
GelJigsawPiece(net.minecraft.util.ResourceLocation location,
java.util.List<net.minecraft.world.gen.feature.template.StructureProcessor> processors,
net.minecraft.world.gen.feature.jigsaw.JigsawPattern.PlacementBehaviour placementBehavior) |
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() |
GelJigsawPiece |
maintainWater(boolean value)
Determins if blocks should become waterlogged when placed in water.
|
boolean |
place(net.minecraft.world.gen.feature.template.TemplateManager manager,
net.minecraft.world.IWorld worldIn,
net.minecraft.world.gen.ChunkGenerator<?> chunkGenerator,
net.minecraft.util.math.BlockPos pos,
net.minecraft.util.Rotation rotation,
net.minecraft.util.math.MutableBoundingBox bounds,
java.util.Random rand,
GelStructurePiece gelStructurePiece)
Changes how the place function works to allow for data structure blocks.
|
<T> com.mojang.datafixers.Dynamic<T> |
serialize0(com.mojang.datafixers.types.DynamicOps<T> ops) |
GelJigsawPiece |
setIgnoreEntities(boolean value)
Prevents entities from generating with the structure.
|
java.lang.String |
toString() |
getBoundingBox, getDataMarkers, getJigsawBlocks, place
public GelJigsawPiece(net.minecraft.util.ResourceLocation location, java.util.List<net.minecraft.world.gen.feature.template.StructureProcessor> processors, net.minecraft.world.gen.feature.jigsaw.JigsawPattern.PlacementBehaviour placementBehavior)
location
- : the structureprocessors
- placementBehavior
- GelJigsawPiece
public GelJigsawPiece(net.minecraft.util.ResourceLocation location, java.util.List<net.minecraft.world.gen.feature.template.StructureProcessor> processors)
location
- : the structureprocessors
- GelJigsawPiece
public GelJigsawPiece(net.minecraft.util.ResourceLocation location)
location
- : the structureGelJigsawPiece
public GelJigsawPiece(com.mojang.datafixers.Dynamic<?> dyn)
dyn
- public GelJigsawPiece maintainWater(boolean value)
value
- GelJigsawPiece
public GelJigsawPiece setIgnoreEntities(boolean value)
value
- GelJigsawPiece
public boolean place(net.minecraft.world.gen.feature.template.TemplateManager manager, net.minecraft.world.IWorld worldIn, net.minecraft.world.gen.ChunkGenerator<?> chunkGenerator, net.minecraft.util.math.BlockPos pos, net.minecraft.util.Rotation rotation, net.minecraft.util.math.MutableBoundingBox bounds, java.util.Random rand, GelStructurePiece gelStructurePiece)
manager
- worldIn
- chunkGenerator
- pos
- rotation
- bounds
- rand
- gelStructurePiece
- 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
public <T> com.mojang.datafixers.Dynamic<T> serialize0(com.mojang.datafixers.types.DynamicOps<T> ops)
serialize0
in class net.minecraft.world.gen.feature.jigsaw.SingleJigsawPiece
public java.lang.String toString()
toString
in class net.minecraft.world.gen.feature.jigsaw.SingleJigsawPiece