C# Class fCraft.Portals.PortalHandler

Mostra file Open project: GlennMR/800craft Class Usage Examples

Public Methods

Method Description
CreatePortal ( Portal portal, World source, bool Custom ) : void
GetInstance ( ) : PortalHandler
GetPortal ( Player player ) : Portal
GetPortal ( World world, Vector3I block ) : Portal
IsInRangeOfSpawnpoint ( World world, Vector3I block ) : bool

Private Methods

Method Description
Player_JoinedWorld ( object sender, Events e ) : void
Player_Moved ( object sender, Events e ) : void
Player_PlacingBlock ( object sender, Events e ) : void
PortalHandler ( ) : System

Method Details

CreatePortal() public static method

public static CreatePortal ( Portal portal, World source, bool Custom ) : void
portal Portal
source World
Custom bool
return void

GetInstance() public static method

public static GetInstance ( ) : PortalHandler
return PortalHandler

GetPortal() public method

public GetPortal ( Player player ) : Portal
player Player
return Portal

GetPortal() public method

public GetPortal ( World world, Vector3I block ) : Portal
world World
block Vector3I
return Portal

IsInRangeOfSpawnpoint() public static method

public static IsInRangeOfSpawnpoint ( World world, Vector3I block ) : bool
world World
block Vector3I
return bool