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

Brush that creates a random pattern, with individually adjustable probabilities for each blocktype. More...

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

Public Member Functions

 RandomBrush ()
 
 RandomBrush (Block oneBlock, int ratio)
 
 RandomBrush (Block[] blocks, int[] ratios)
 
 RandomBrush ([NotNull] RandomBrush other)
 
IBrushInstance MakeInstance (Player player, CommandReader cmd, DrawOperation state)
 
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.
 

Public Attributes

const int MaxRatio = 10000
 

Properties

Block[] Blocks [get, set]
 
int[] BlockRatios [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 creates a random pattern, with individually adjustable probabilities for each blocktype.

Constructor & Destructor Documentation

fCraft.Drawing.RandomBrush.RandomBrush ( )
fCraft.Drawing.RandomBrush.RandomBrush ( Block  oneBlock,
int  ratio 
)
fCraft.Drawing.RandomBrush.RandomBrush ( Block[]  blocks,
int[]  ratios 
)
fCraft.Drawing.RandomBrush.RandomBrush ( [NotNull] RandomBrush  other)

Member Function Documentation

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

Member Data Documentation

const int fCraft.Drawing.RandomBrush.MaxRatio = 10000

Property Documentation

int fCraft.Drawing.RandomBrush.AlternateBlocks
get
int [] fCraft.Drawing.RandomBrush.BlockRatios
getset
Block [] fCraft.Drawing.RandomBrush.Blocks
getset
IBrush fCraft.Drawing.RandomBrush.Brush
get
string fCraft.Drawing.RandomBrush.Description
get
IBrushFactory fCraft.Drawing.RandomBrush.Factory
get
string fCraft.Drawing.RandomBrush.InstanceDescription
get

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