fCraft  0.636
Custom Minecraft Server
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Properties Events
Public Member Functions | Properties | List of all members
fCraft.Drawing.CopyState Class Reference

Represents a set of copied blocks, including metadata. Created by /Copy and /Cut commands. More...

Inheritance diagram for fCraft.Drawing.CopyState:
Inheritance graph
[legend]
Collaboration diagram for fCraft.Drawing.CopyState:
Collaboration graph
[legend]

Public Member Functions

 CopyState (Vector3I mark1, Vector3I mark2)
 
 CopyState ([NotNull] CopyState original)
 
 CopyState ([NotNull] CopyState original,[NotNull] Block[,,] buffer)
 
object Clone ()
 

Properties

Block[,,] Blocks [get, set]
 3D array of copies blocks.
 
BoundingBox Bounds [get, set]
 Dimensions and coordinates of the copied blocks.
 
Vector3I Orientation [get, set]
 Orientation of copying (relation of two marks to each other). Each value is either 1 (forwards along the axis) or -1 (backwards along the axis). Orientation is used by /Paste and /PasteNot commands to determine the direction of pasting from the clicked block.
 
int Slot [get, set]
 Index of the copyslot into which this was copied. Defaults to 0.
 
string OriginWorld [get, set]
 Name of the world where this was copied from. Defaults to null.
 
DateTime CopyTime [get, set]
 Time (UTC) at which the blocks were copied. Defaults to DateTime.UtcNow.
 
string OriginCorner [get]
 Description of the corner at which copying started (e.g. "bottom southeast")
 

Detailed Description

Represents a set of copied blocks, including metadata. Created by /Copy and /Cut commands.

Constructor & Destructor Documentation

fCraft.Drawing.CopyState.CopyState ( Vector3I  mark1,
Vector3I  mark2 
)
fCraft.Drawing.CopyState.CopyState ( [NotNull] CopyState  original)
fCraft.Drawing.CopyState.CopyState ( [NotNull] CopyState  original,
[NotNull] Block  buffer[,,] 
)

Member Function Documentation

object fCraft.Drawing.CopyState.Clone ( )

Property Documentation

Block [, ,] fCraft.Drawing.CopyState.Blocks
getset

3D array of copies blocks.

BoundingBox fCraft.Drawing.CopyState.Bounds
getset

Dimensions and coordinates of the copied blocks.

DateTime fCraft.Drawing.CopyState.CopyTime
getset

Time (UTC) at which the blocks were copied. Defaults to DateTime.UtcNow.

Vector3I fCraft.Drawing.CopyState.Orientation
getset

Orientation of copying (relation of two marks to each other). Each value is either 1 (forwards along the axis) or -1 (backwards along the axis). Orientation is used by /Paste and /PasteNot commands to determine the direction of pasting from the clicked block.

string fCraft.Drawing.CopyState.OriginCorner
get

Description of the corner at which copying started (e.g. "bottom southeast")

string fCraft.Drawing.CopyState.OriginWorld
getset

Name of the world where this was copied from. Defaults to null.

int fCraft.Drawing.CopyState.Slot
getset

Index of the copyslot into which this was copied. Defaults to 0.


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