Class that describes an individual instance of a configured brush. Each brush instance will only be used for one DrawOperation, so it can store state. Stateless brush types may combine IBrush and IBrushInstance into one class.
More...
|
| IBrush | Brush [get] |
| | Configured brush that created this instance.
|
| |
| string | InstanceDescription [get] |
| | A compact readable summary of brush type, configuration, and state.
|
| |
| int | AlternateBlocks [get] |
| | Whether the brush is capable of providing alternate blocks (e.g. for filling hollow DrawOps).
|
| |
Class that describes an individual instance of a configured brush. Each brush instance will only be used for one DrawOperation, so it can store state. Stateless brush types may combine IBrush and IBrushInstance into one class.
| bool fCraft.Drawing.IBrushInstance.Begin |
( |
[NotNull] Player |
player, |
|
|
[NotNull] DrawOperation |
op |
|
) |
| |
Called when the DrawOperation starts. Should be used to verify that the brush is ready for use. Resources used by the brush should be obtained here.
- Parameters
-
- Returns
- Whether this brush instance has successfully began or not.
| void fCraft.Drawing.IBrushInstance.End |
( |
| ) |
|
Called when the DrawOperation is done or cancelled. Resources used by the brush should be freed/disposed here.
Provides the next Block type for the given DrawOperation.
- Returns
- Block type to place, or Block.Undefined to skip.
| int fCraft.Drawing.IBrushInstance.AlternateBlocks |
|
get |
Whether the brush is capable of providing alternate blocks (e.g. for filling hollow DrawOps).
| IBrush fCraft.Drawing.IBrushInstance.Brush |
|
get |
Configured brush that created this instance.
| string fCraft.Drawing.IBrushInstance.InstanceDescription |
|
get |
A compact readable summary of brush type, configuration, and state.
The documentation for this interface was generated from the following file: