Interface SimpleBlockData.IFactory
- Enclosing class:
SimpleBlockData
@AssistedFactory
public static interface SimpleBlockData.IFactory
The factory interface for creating
SimpleBlockData instances.-
Method Summary
Modifier and TypeMethodDescriptioncreate(AnimatedBlockDisplay animatedBlock, @Nullable Consumer<IAnimatedBlockData> blockDataRotator, org.bukkit.World bukkitWorld, Vector3Di position) Creates a newSimpleBlockDatainstance.
-
Method Details
-
create
SimpleBlockData create(AnimatedBlockDisplay animatedBlock, @Nullable Consumer<IAnimatedBlockData> blockDataRotator, org.bukkit.World bukkitWorld, Vector3Di position) Creates a newSimpleBlockDatainstance.- Parameters:
animatedBlock- TheAnimatedBlockDisplaythat this block data belongs to.blockDataRotator- The block data rotator. This is used to rotate the block data.bukkitWorld- The world the block is in.position- The start position of the block.- Returns:
- The created
SimpleBlockDatainstance.
-