C# Class Pluton.Events.CraftEvent

Inheritance: CountedInstance
Show file Open project: Notulp/Pluton Class Usage Examples

Public Properties

Property Type Description
Amount int
Cancel bool
Crafter Player
SkinID int
Target ItemDefinition
bluePrint ItemBlueprint
cancelReason string
itemCrafter ItemCrafter

Public Methods

Method Description
CraftEvent ( ItemCrafter self, ItemBlueprint bp, BasePlayer owner, ProtoBuf instanceData, int amount, int skinid )
Stop ( string reason = "A plugin stops you from crafting that!" ) : void

Method Details

CraftEvent() public method

public CraftEvent ( ItemCrafter self, ItemBlueprint bp, BasePlayer owner, ProtoBuf instanceData, int amount, int skinid )
self ItemCrafter
bp ItemBlueprint
owner BasePlayer
instanceData ProtoBuf
amount int
skinid int

Stop() public method

public Stop ( string reason = "A plugin stops you from crafting that!" ) : void
reason string
return void

Property Details

Amount public property

Amount of crafting item.
public int Amount
return int

Cancel public property

Cancels teh event.
public bool Cancel
return bool

Crafter public property

The Player who started crafting.
public Player Crafter
return Player

SkinID public property

public int SkinID
return int

Target public property

Item.Definition of the target item.
public ItemDefinition Target
return ItemDefinition

bluePrint public property

The blueprint.
public ItemBlueprint bluePrint
return ItemBlueprint

cancelReason public property

Notify the Crafter about the action.
public string cancelReason
return string

itemCrafter public property

The ItemCrafter object.
public ItemCrafter itemCrafter
return ItemCrafter