C# 클래스 fCraft.PacketWriter

파일 보기 프로젝트 열기: GlennMR/800craft 1 사용 예제들

공개 메소드들

메소드 설명
MakeSetBlock ( int x, int y, int z, Block type ) : Packet
PacketWriter ( Stream stream ) : System
Write ( OpCode opcode ) : void
Write ( [ str ) : void

Writes a string in Minecraft protocol format. Maximum length: 64 characters.

Write ( int data ) : void

Writes a 32-bit integer in Big-Endian order.

Write ( short data ) : void

Writes a 16-bit short integer in Big-Endian order.

WriteAddEntity ( byte id, [ player, Position pos ) : void
WriteMapBegin ( ) : void
WriteMapChunk ( [ chunk, int chunkSize, byte progress ) : void
WritePing ( ) : void
WriteTeleport ( byte id, Position pos ) : void

비공개 메소드들

메소드 설명
MakeAddEntity ( int id, [ name, Position pos ) : Packet
MakeDisconnect ( [ reason ) : Packet
MakeHandshake ( [ player, [ serverName, [ motd ) : Packet
MakeMessage ( [ message ) : Packet
MakeMove ( int id, Position pos ) : Packet
MakeMoveRotate ( int id, Position pos ) : Packet
MakeRemoveEntity ( int id ) : Packet
MakeRotate ( int id, Position pos ) : Packet
MakeSelfTeleport ( Position pos ) : Packet
MakeSetBlock ( Vector3I coords, Block type ) : Packet
MakeSetPermission ( [ player ) : Packet
MakeTeleport ( int id, Position pos ) : Packet
ToNetOrder ( int number, byte arr, int offset ) : void
WriteMapEnd ( [ map ) : void

메소드 상세

MakeSetBlock() 공개 정적인 메소드

public static MakeSetBlock ( int x, int y, int z, Block type ) : Packet
x int
y int
z int
type Block
리턴 Packet

PacketWriter() 공개 메소드

public PacketWriter ( Stream stream ) : System
stream Stream
리턴 System

Write() 공개 메소드

public Write ( OpCode opcode ) : void
opcode OpCode
리턴 void

Write() 공개 메소드

Writes a string in Minecraft protocol format. Maximum length: 64 characters.
public Write ( [ str ) : void
str [
리턴 void

Write() 공개 메소드

Writes a 32-bit integer in Big-Endian order.
public Write ( int data ) : void
data int
리턴 void

Write() 공개 메소드

Writes a 16-bit short integer in Big-Endian order.
public Write ( short data ) : void
data short
리턴 void

WriteAddEntity() 공개 메소드

public WriteAddEntity ( byte id, [ player, Position pos ) : void
id byte
player [
pos Position
리턴 void

WriteMapBegin() 공개 메소드

public WriteMapBegin ( ) : void
리턴 void

WriteMapChunk() 공개 메소드

public WriteMapChunk ( [ chunk, int chunkSize, byte progress ) : void
chunk [
chunkSize int
progress byte
리턴 void

WritePing() 공개 메소드

public WritePing ( ) : void
리턴 void

WriteTeleport() 공개 메소드

public WriteTeleport ( byte id, Position pos ) : void
id byte
pos Position
리턴 void