Class WGShapeData

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

public class WGShapeData extends Object
Class to define how multi-chunk features should be placed. For example, for terrain modification, it is better to place the feature before GenerationStep.Decoration.VEGETAL_DECORATION decorations. This class allows you to manage this and define when is the good moment to place your structure.
  • Method Details

    • ofStep

      public static WGShapeData ofStep(net.minecraft.world.level.levelgen.GenerationStep.Decoration step, String name)
    • ofShift

      public static WGShapeData ofShift(WGShapeData.PlacementShift shift, net.minecraft.world.level.levelgen.placement.PlacedFeature feature, String name)
    • getName

      public String getName()
    • getFeatureShift

      public Optional<com.mojang.datafixers.util.Pair<net.minecraft.world.level.levelgen.placement.PlacedFeature,WGShapeData.PlacementShift>> getFeatureShift()
    • getStep

      public Optional<net.minecraft.world.level.levelgen.GenerationStep.Decoration> getStep()
    • toString

      public String toString()
      Overrides:
      toString in class Object