C# Class Pluton.Events.CraftEvent

Inheritance: CountedInstance
显示文件 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_oe property

Amount of crafting item.
public int Amount
return int

Cancel public_oe property

Cancels teh event.
public bool Cancel
return bool

Crafter public_oe property

The Player who started crafting.
public Player Crafter
return Player

SkinID public_oe property

public int SkinID
return int

Target public_oe property

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

bluePrint public_oe property

The blueprint.
public ItemBlueprint bluePrint
return ItemBlueprint

cancelReason public_oe property

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

itemCrafter public_oe property

The ItemCrafter object.
public ItemCrafter itemCrafter
return ItemCrafter