C# Class MineFrog.Level

Datei anzeigen Open project: Merlin33069/MineFrog Class Usage Examples

Public Properties

Property Type Description
BlockData byte[]
BlockPosCreationAverager Averager
Generator LevelGenerator
IsUnloaded bool
Name string
Physics PhysicsHandler
Players List
SizeX ushort
SizeXZmultiplied int
SizeY ushort
SizeZ ushort
SpawnPos Pos

Private Properties

Property Type Description
DirectoryCheck void
PhysicsBlockChange bool
PlayerBlockChange bool
SaveCheck void
UncompressAndCreateHandle void

Public Methods

Method Description
BlockChange ( ushort x, ushort y, ushort z, byte type ) : bool
Create ( ushort inx, ushort iny, ushort inz, string type ) : void
Find ( string name ) : Level
FullSave ( ) : void
GetTile ( BlockPos pos ) : MCBlocks
GetTile ( int pos ) : byte
GetTile ( ushort x, ushort y, ushort z ) : byte
GetTileByOffset ( BlockPos pos, int diffX, int diffY, int diffZ ) : MCBlocks
IntOffset ( int pos, int x, int y, int z ) : int
IntToBlockPos ( int pos ) : BlockPos
Level ( string fileName, bool shouldCreateIfNotExist ) : System
Level ( string name, ushort x, ushort y, ushort z ) : System
Level ( string name, ushort x, ushort y, ushort z, string type ) : System
Load ( string name ) : void
NotInBounds ( BlockPos pos ) : bool
NotInBounds ( ushort x, ushort y, ushort z ) : bool
PhysicsBlockChange ( BlockPos pos, MCBlocks type ) : bool
PhysicsCheck ( ushort inX, ushort inY, ushort inZ ) : void
PosToInt ( BlockPos pos ) : int
PosToInt ( ushort x, ushort y, ushort z ) : int
SetTile ( ushort x, ushort y, ushort z, byte type ) : bool
Unload ( ) : void

Private Methods

Method Description
DirectoryCheck ( ) : void
PhysicsBlockChange ( BlockPos pos, byte type ) : bool
PlayerBlockChange ( Player changer, ushort x, ushort y, ushort z, byte type ) : bool
SaveCheck ( ) : void
UncompressAndCreateHandle ( ) : void

Method Details

BlockChange() public method

public BlockChange ( ushort x, ushort y, ushort z, byte type ) : bool
x ushort
y ushort
z ushort
type byte
return bool

Create() public method

public Create ( ushort inx, ushort iny, ushort inz, string type ) : void
inx ushort
iny ushort
inz ushort
type string
return void

Find() public static method

public static Find ( string name ) : Level
name string
return Level

FullSave() public method

public FullSave ( ) : void
return void

GetTile() public method

public GetTile ( BlockPos pos ) : MCBlocks
pos BlockPos
return MCBlocks

GetTile() public method

public GetTile ( int pos ) : byte
pos int
return byte

GetTile() public method

public GetTile ( ushort x, ushort y, ushort z ) : byte
x ushort
y ushort
z ushort
return byte

GetTileByOffset() public method

public GetTileByOffset ( BlockPos pos, int diffX, int diffY, int diffZ ) : MCBlocks
pos BlockPos
diffX int
diffY int
diffZ int
return MCBlocks

IntOffset() public method

public IntOffset ( int pos, int x, int y, int z ) : int
pos int
x int
y int
z int
return int

IntToBlockPos() public method

public IntToBlockPos ( int pos ) : BlockPos
pos int
return BlockPos

Level() public method

public Level ( string fileName, bool shouldCreateIfNotExist ) : System
fileName string
shouldCreateIfNotExist bool
return System

Level() public method

public Level ( string name, ushort x, ushort y, ushort z ) : System
name string
x ushort
y ushort
z ushort
return System

Level() public method

public Level ( string name, ushort x, ushort y, ushort z, string type ) : System
name string
x ushort
y ushort
z ushort
type string
return System

Load() public method

public Load ( string name ) : void
name string
return void

NotInBounds() public method

public NotInBounds ( BlockPos pos ) : bool
pos BlockPos
return bool

NotInBounds() public method

public NotInBounds ( ushort x, ushort y, ushort z ) : bool
x ushort
y ushort
z ushort
return bool

PhysicsBlockChange() public method

public PhysicsBlockChange ( BlockPos pos, MCBlocks type ) : bool
pos BlockPos
type MCBlocks
return bool

PhysicsCheck() public method

public PhysicsCheck ( ushort inX, ushort inY, ushort inZ ) : void
inX ushort
inY ushort
inZ ushort
return void

PosToInt() public method

public PosToInt ( BlockPos pos ) : int
pos BlockPos
return int

PosToInt() public method

public PosToInt ( ushort x, ushort y, ushort z ) : int
x ushort
y ushort
z ushort
return int

SetTile() public method

public SetTile ( ushort x, ushort y, ushort z, byte type ) : bool
x ushort
y ushort
z ushort
type byte
return bool

Unload() public method

public Unload ( ) : void
return void

Property Details

BlockData public_oe property

public byte[] BlockData
return byte[]

BlockPosCreationAverager public_oe static_oe property

public static Averager,MineFrog BlockPosCreationAverager
return Averager

Generator public_oe property

public LevelGenerator,MineFrog Generator
return LevelGenerator

IsUnloaded public_oe property

public bool IsUnloaded
return bool

Name public_oe property

public string Name
return string

Physics public_oe property

public PhysicsHandler,MineFrog Physics
return PhysicsHandler

Players public_oe property

public List Players
return List

SizeX public_oe property

public ushort SizeX
return ushort

SizeXZmultiplied public_oe property

public int SizeXZmultiplied
return int

SizeY public_oe property

public ushort SizeY
return ushort

SizeZ public_oe property

public ushort SizeZ
return ushort

SpawnPos public_oe property

public Pos,MineFrog SpawnPos
return Pos