Class WGShapeHandler

java.lang.Object
fr.rodofire.ewc.shape.block.placer.WGShapeHandler

public class WGShapeHandler extends Object
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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    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.
    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.
    static void
    encodeInformations(net.minecraft.world.level.WorldGenLevel worldAccess, Set<net.minecraft.world.level.ChunkPos> posSet, WGShapeData placer, net.minecraft.world.level.ChunkPos posOffset)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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.