C# Class Craft.Net.Server.Slot

Represents an inventory slot.
Afficher le fichier Open project: ags131/SharpMinecraftLibrary Class Usage Examples

Méthodes publiques

Свойство Type Description
Count byte
Id short
Metadata short
Nbt LibNbt.NbtFile

Méthodes publiques

Méthode Description
ReadSlot ( Stream stream ) : Slot

Reads a slot from the given stream.

Slot ( ) : System

Initializes a new instance of the Slot class.

Slot ( short ID, byte Count ) : System

Initializes a new instance of the Slot class.

Slot ( short ID, byte Count, short Metadata ) : System

Initializes a new instance of the Slot class.

WriteSlot ( Stream stream ) : void
WriteSlot ( Stream stream, Slot s ) : void

Private Methods

Méthode Description
ReadShort ( Stream stream ) : short

Gets the slot data.

Gets the slot data.

WriteShort ( Stream stream, short value ) : void

Method Details

ReadSlot() public static méthode

Reads a slot from the given stream.
public static ReadSlot ( Stream stream ) : Slot
stream Stream The stream to read from.
Résultat Slot

Slot() public méthode

Initializes a new instance of the Slot class.
public Slot ( ) : System
Résultat System

Slot() public méthode

Initializes a new instance of the Slot class.
public Slot ( short ID, byte Count ) : System
ID short The ID.
Count byte The count.
Résultat System

Slot() public méthode

Initializes a new instance of the Slot class.
public Slot ( short ID, byte Count, short Metadata ) : System
ID short The ID.
Count byte The count.
Metadata short The metadata.
Résultat System

WriteSlot() public méthode

public WriteSlot ( Stream stream ) : void
stream Stream
Résultat void

WriteSlot() public static méthode

public static WriteSlot ( Stream stream, Slot s ) : void
stream Stream
s Slot
Résultat void

Property Details

Count public_oe property

Gets or sets the item count.
public byte Count
Résultat byte

Id public_oe property

Gets or sets the item ID.
This ID may be a block or an item.
public short Id
Résultat short

Metadata public_oe property

Gets or sets the item metadata.
public short Metadata
Résultat short

Nbt public_oe property

Gets or sets the NBT data.
This is used for enchanting equipment
public NbtFile,LibNbt Nbt
Résultat LibNbt.NbtFile