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

Provides data for Player.Clicking event. Cancelable. Coords, Block, and Action properties may be changed. More...

Inheritance diagram for fCraft.Events.PlayerClickingEventArgs:
Inheritance graph
[legend]
Collaboration diagram for fCraft.Events.PlayerClickingEventArgs:
Collaboration graph
[legend]

Properties

Player Player [get, set]
 Player who is attempting to click.
 
Vector3I Coords [get, set]
 Click coordinates, in terms of blocks. Must be within map bounds. Can be changed.
 
Block Block [get, set]
 Block type that the player is currently holding. Can be changed.
 
ClickAction Action [get, set]
 Whether the player is building a block (right-click) or deleting it (left-click). Can be changed.
 
bool Cancel [get, set]
 If set to 'true', denies click and sends a SetBlock packet to the client to revert any client-side changes.
 
- Properties inherited from fCraft.Events.IPlayerEvent
Player Player [get]
 Player who initiated or is affected by the event.
 
- Properties inherited from fCraft.ICancelableEvent
bool Cancel [get, set]
 Set to "true" to cancel the event.
 

Detailed Description

Provides data for Player.Clicking event. Cancelable. Coords, Block, and Action properties may be changed.

Property Documentation

ClickAction fCraft.Events.PlayerClickingEventArgs.Action
getset

Whether the player is building a block (right-click) or deleting it (left-click). Can be changed.

Block fCraft.Events.PlayerClickingEventArgs.Block
getset

Block type that the player is currently holding. Can be changed.

bool fCraft.Events.PlayerClickingEventArgs.Cancel
getset

If set to 'true', denies click and sends a SetBlock packet to the client to revert any client-side changes.

Vector3I fCraft.Events.PlayerClickingEventArgs.Coords
getset

Click coordinates, in terms of blocks. Must be within map bounds. Can be changed.

Player fCraft.Events.PlayerClickingEventArgs.Player
getset

Player who is attempting to click.


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