fCraft  0.638
Custom Minecraft Server
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Properties Events
fCraft.Drawing.ReplaceBrushBrush Class Reference

Brush that replaces all blocks of the given type with output of a brush. More...

+ Inheritance diagram for fCraft.Drawing.ReplaceBrushBrush:
+ Collaboration diagram for fCraft.Drawing.ReplaceBrushBrush:

Public Member Functions

 ReplaceBrushBrush (Block block,[NotNull] IBrush replacement)
 
 ReplaceBrushBrush ([NotNull] ReplaceBrushBrush other)
 
IBrushInstance MakeInstance (Player player, CommandReader cmd, DrawOperation op)
 
bool Begin (Player player, DrawOperation op)
 
Block NextBlock (DrawOperation op)
 
void End ()
 
- Public Member Functions inherited from fCraft.Drawing.IBrushInstance
bool 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.
 
Block NextBlock ([NotNull] DrawOperation op)
 Provides the next Block type for the given DrawOperation.
 
void End ()
 Called when the DrawOperation is done or cancelled. Resources used by the brush should be freed/disposed here.
 
- Public Member Functions inherited from fCraft.Drawing.IBrush
IBrushInstance MakeInstance ([NotNull] Player player,[NotNull] CommandReader cmd,[NotNull] DrawOperation op)
 Creates an instance for this configured brush, for use with a specific DrawOperation.
 

Properties

Block Block [get, set]
 
IBrush Replacement [get, set]
 
IBrushInstance ReplacementInstance [get, set]
 
IBrushFactory Factory [get]
 
string Description [get]
 
IBrush Brush [get]
 
int AlternateBlocks [get]
 
string InstanceDescription [get]
 
- Properties inherited from fCraft.Drawing.IBrushInstance
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).
 
- Properties inherited from fCraft.Drawing.IBrush
IBrushFactory Factory [get]
 IBrushFactory associated with this brush type.
 
string Description [get]
 A compact readable summary of brush type and configuration.
 

Detailed Description

Brush that replaces all blocks of the given type with output of a brush.

Constructor & Destructor Documentation

fCraft.Drawing.ReplaceBrushBrush.ReplaceBrushBrush ( Block  block,
[NotNull] IBrush  replacement 
)
fCraft.Drawing.ReplaceBrushBrush.ReplaceBrushBrush ( [NotNull] ReplaceBrushBrush  other)

Member Function Documentation

bool fCraft.Drawing.ReplaceBrushBrush.Begin ( Player  player,
DrawOperation  op 
)
void fCraft.Drawing.ReplaceBrushBrush.End ( )
IBrushInstance fCraft.Drawing.ReplaceBrushBrush.MakeInstance ( Player  player,
CommandReader  cmd,
DrawOperation  op 
)
Block fCraft.Drawing.ReplaceBrushBrush.NextBlock ( DrawOperation  op)

Property Documentation

int fCraft.Drawing.ReplaceBrushBrush.AlternateBlocks
get
Block fCraft.Drawing.ReplaceBrushBrush.Block
getset
IBrush fCraft.Drawing.ReplaceBrushBrush.Brush
get
string fCraft.Drawing.ReplaceBrushBrush.Description
get
IBrushFactory fCraft.Drawing.ReplaceBrushBrush.Factory
get
string fCraft.Drawing.ReplaceBrushBrush.InstanceDescription
get
IBrush fCraft.Drawing.ReplaceBrushBrush.Replacement
getset
IBrushInstance fCraft.Drawing.ReplaceBrushBrush.ReplacementInstance
getset

The documentation for this class was generated from the following file: