C# Класс Craft.Net.Server.Slot

Represents an inventory slot.
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
Count byte
Id short
Metadata short
Nbt LibNbt.NbtFile

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
ReadShort ( Stream stream ) : short

Gets the slot data.

Gets the slot data.

WriteShort ( Stream stream, short value ) : void

Описание методов

ReadSlot() публичный статический Метод

Reads a slot from the given stream.
public static ReadSlot ( Stream stream ) : Slot
stream Stream The stream to read from.
Результат Slot

Slot() публичный Метод

Initializes a new instance of the Slot class.
public Slot ( ) : System
Результат System

Slot() публичный Метод

Initializes a new instance of the Slot class.
public Slot ( short ID, byte Count ) : System
ID short The ID.
Count byte The count.
Результат System

Slot() публичный Метод

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.
Результат System

WriteSlot() публичный Метод

public WriteSlot ( Stream stream ) : void
stream Stream
Результат void

WriteSlot() публичный статический Метод

public static WriteSlot ( Stream stream, Slot s ) : void
stream Stream
s Slot
Результат void

Описание свойств

Count публичное свойство

Gets or sets the item count.
public byte Count
Результат byte

Id публичное свойство

Gets or sets the item ID.
This ID may be a block or an item.
public short Id
Результат short

Metadata публичное свойство

Gets or sets the item metadata.
public short Metadata
Результат short

Nbt публичное свойство

Gets or sets the NBT data.
This is used for enchanting equipment
public NbtFile,LibNbt Nbt
Результат LibNbt.NbtFile