Package org.bukkit.util
Interface BlockTransformer
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
A BlockTransformer is used to modify blocks that are placed by structure.
- 
Nested Class SummaryNested ClassesModifier and TypeInterfaceDescriptionstatic interfaceThe TransformationState allows access to the original block state and the block state of the block that was at the location of the transformation in the world before the transformation started.
- 
Method SummaryModifier and TypeMethodDescriptiontransform(@NotNull LimitedRegion region, int x, int y, int z, @NotNull BlockState current, @NotNull BlockTransformer.TransformationState state) Transforms a block in a structure.
- 
Method Details- 
transform@NotNull @NotNull BlockState transform(@NotNull @NotNull LimitedRegion region, int x, int y, int z, @NotNull @NotNull BlockState current, @NotNull @NotNull BlockTransformer.TransformationState state) Transforms a block in a structure. NOTE: The usage ofBlockData.createBlockState()can provide even more flexibility to return the exact block state you might want to return.- Parameters:
- region- the accessible region
- x- the x position of the block
- y- the y position of the block
- z- the z position of the block
- current- the state of the block that should be placed
- state- the state of this transformation.
- Returns:
- the new block state
 
 
-