Class WGShapeHandler
java.lang.Object
fr.rodofire.ewc.shape.block.placer.WGShapeHandler
For multi-chunk features, we create a file that refers every piece of shapes related to a chunkPos.
It allows defining at which moment of the chunk generation should the piece be placed.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic WGShapePlacerManagerdecodeInformation(net.minecraft.world.level.WorldGenLevel worldAccess, net.minecraft.world.level.ChunkPos pos) Décode les informations d'un chunk pour savoir quels morceaux doivent être placés.static voidencodeInformation(net.minecraft.world.level.WorldGenLevel worldAccess, net.minecraft.world.level.ChunkPos pos, WGShapeData placer) store the information about when should the piece should be placed.static voidencodeInformations(net.minecraft.world.level.WorldGenLevel worldAccess, Set<net.minecraft.world.level.ChunkPos> posSet, WGShapeData placer, net.minecraft.world.level.ChunkPos posOffset)
-
Constructor Details
-
WGShapeHandler
public WGShapeHandler()
-
-
Method Details
-
encodeInformations
public static void encodeInformations(net.minecraft.world.level.WorldGenLevel worldAccess, Set<net.minecraft.world.level.ChunkPos> posSet, WGShapeData placer, net.minecraft.world.level.ChunkPos posOffset) -
encodeInformation
public static void encodeInformation(net.minecraft.world.level.WorldGenLevel worldAccess, net.minecraft.world.level.ChunkPos pos, WGShapeData placer) store the information about when should the piece should be placed. -
decodeInformation
public static WGShapePlacerManager decodeInformation(net.minecraft.world.level.WorldGenLevel worldAccess, net.minecraft.world.level.ChunkPos pos) Décode les informations d'un chunk pour savoir quels morceaux doivent être placés.
-