Class WGShapeData
java.lang.Object
fr.rodofire.ewc.shape.block.placer.WGShapeData
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.-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionOptional<com.mojang.datafixers.util.Pair<net.minecraft.world.level.levelgen.placement.PlacedFeature, WGShapeData.PlacementShift>> getName()Optional<net.minecraft.world.level.levelgen.GenerationStep.Decoration> getStep()static WGShapeDataofShift(WGShapeData.PlacementShift shift, net.minecraft.world.level.levelgen.placement.PlacedFeature feature, String name) static WGShapeDatatoString()
-
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
-
getFeatureShift
public Optional<com.mojang.datafixers.util.Pair<net.minecraft.world.level.levelgen.placement.PlacedFeature,WGShapeData.PlacementShift>> getFeatureShift() -
getStep
-
toString
-