Class OpenLevel
Inheritance
System.Object
OpenLevel
Assembly: OpenAPI.dll
Syntax
public class OpenLevel : Level
Constructors
|
Improve this Doc
View Source
OpenLevel(OpenApi, OpenLevelManager, String, IWorldProvider, EntityManager, GameMode, Difficulty, Int32)
Declaration
public OpenLevel(OpenApi openApi, OpenLevelManager levelManager, string levelId, IWorldProvider worldProvider, EntityManager entityManager, GameMode gameMode = null, Difficulty difficulty = null, int viewDistance = 11)
Parameters
Type |
Name |
Description |
OpenApi |
openApi |
|
OpenLevelManager |
levelManager |
|
System.String |
levelId |
|
IWorldProvider |
worldProvider |
|
EntityManager |
entityManager |
|
GameMode |
gameMode |
|
Difficulty |
difficulty |
|
System.Int32 |
viewDistance |
|
Properties
|
Improve this Doc
View Source
EventDispatcher
Declaration
public EventDispatcher EventDispatcher { get; }
Property Value
|
Improve this Doc
View Source
OpenAPI
Declaration
public OpenApi OpenAPI { get; }
Property Value
|
Improve this Doc
View Source
TickScheduler
Declaration
public TickScheduler TickScheduler { get; }
Property Value
Methods
|
Improve this Doc
View Source
AddPlayer(MiNET.Player, Boolean)
Declaration
public override void AddPlayer(MiNET.Player newPlayer, bool spawn)
Parameters
Type |
Name |
Description |
MiNET.Player |
newPlayer |
|
System.Boolean |
spawn |
|
|
Improve this Doc
View Source
BreakBlock(Block, BlockFace, OpenPlayer, Item)
Declaration
public bool BreakBlock(Block block, BlockFace face, OpenPlayer player = null, Item tool = null)
Parameters
Type |
Name |
Description |
Block |
block |
|
BlockFace |
face |
|
OpenPlayer |
player |
|
Item |
tool |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
BroadcastMessage(String, MessageType, MiNET.Player, MiNET.Player[], Boolean, String[])
Declaration
public override void BroadcastMessage(string text, MessageType type = null, MiNET.Player sender = null, MiNET.Player[] sendList = null, bool needsTranslation = false, string[] parameters = null)
Parameters
Type |
Name |
Description |
System.String |
text |
|
MessageType |
type |
|
MiNET.Player |
sender |
|
MiNET.Player[] |
sendList |
|
System.Boolean |
needsTranslation |
|
System.String[] |
parameters |
|
|
Improve this Doc
View Source
Close()
Declaration
public override void Close()
|
Improve this Doc
View Source
DropItem(Vector3, Item)
Declaration
public override void DropItem(Vector3 coordinates, Item drop)
Parameters
Type |
Name |
Description |
Vector3 |
coordinates |
|
Item |
drop |
|
|
Improve this Doc
View Source
OnBlockBreak(BlockBreakEventArgs)
Declaration
protected override bool OnBlockBreak(BlockBreakEventArgs e)
Parameters
Type |
Name |
Description |
BlockBreakEventArgs |
e |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
OnBlockPlace(BlockPlaceEventArgs)
Declaration
public override bool OnBlockPlace(BlockPlaceEventArgs e)
Parameters
Type |
Name |
Description |
BlockPlaceEventArgs |
e |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
RemovePlayer(MiNET.Player, Boolean)
Declaration
public override void RemovePlayer(MiNET.Player player, bool despawn = true)
Parameters
Type |
Name |
Description |
MiNET.Player |
player |
|
System.Boolean |
despawn |
|