YATS/Forge Documentation
 All Classes Namespaces Files Functions Variables Enumerator Pages
net.minecraft.server.management.ServerConfigurationManager Class Reference
Inheritance diagram for net.minecraft.server.management.ServerConfigurationManager:
net.minecraft.server.dedicated.DedicatedPlayerList net.minecraft.server.integrated.IntegratedPlayerList

Public Member Functions

 ServerConfigurationManager (MinecraftServer par1MinecraftServer)
 
void initializeConnectionToPlayer (INetworkManager par1INetworkManager, EntityPlayerMP par2EntityPlayerMP)
 
void setPlayerManager (WorldServer[] par1ArrayOfWorldServer)
 
void func_72375_a (EntityPlayerMP par1EntityPlayerMP, WorldServer par2WorldServer)
 
int getEntityViewDistance ()
 
NBTTagCompound readPlayerDataFromFile (EntityPlayerMP par1EntityPlayerMP)
 
void playerLoggedIn (EntityPlayerMP par1EntityPlayerMP)
 
void serverUpdateMountedMovingPlayer (EntityPlayerMP par1EntityPlayerMP)
 
void playerLoggedOut (EntityPlayerMP par1EntityPlayerMP)
 
String allowUserToConnect (SocketAddress par1SocketAddress, String par2Str)
 
EntityPlayerMP createPlayerForUser (String par1Str)
 
EntityPlayerMP respawnPlayer (EntityPlayerMP par1EntityPlayerMP, int par2, boolean par3)
 
void transferPlayerToDimension (EntityPlayerMP par1EntityPlayerMP, int par2)
 
void transferPlayerToDimension (EntityPlayerMP par1EntityPlayerMP, int par2, Teleporter teleporter)
 
void transferEntityToWorld (Entity par1Entity, int par2, WorldServer par3WorldServer, WorldServer par4WorldServer)
 
void transferEntityToWorld (Entity par1Entity, int par2, WorldServer par3WorldServer, WorldServer par4WorldServer, Teleporter teleporter)
 
void sendPlayerInfoToAllPlayers ()
 
void sendPacketToAllPlayers (Packet par1Packet)
 
void sendPacketToAllPlayersInDimension (Packet par1Packet, int par2)
 
String getPlayerListAsString ()
 
String[] getAllUsernames ()
 
BanList getBannedPlayers ()
 
BanList getBannedIPs ()
 
void addOp (String par1Str)
 
void removeOp (String par1Str)
 
boolean isAllowedToLogin (String par1Str)
 
boolean areCommandsAllowed (String par1Str)
 
EntityPlayerMP getPlayerForUsername (String par1Str)
 
List findPlayers (ChunkCoordinates par1ChunkCoordinates, int par2, int par3, int par4, int par5, int par6, int par7, Map par8Map, String par9Str, String par10Str)
 
void sendToAllNear (double par1, double par3, double par5, double par7, int par9, Packet par10Packet)
 
void sendToAllNearExcept (EntityPlayer par1EntityPlayer, double par2, double par4, double par6, double par8, int par10, Packet par11Packet)
 
void saveAllPlayerData ()
 
void addToWhiteList (String par1Str)
 
void removeFromWhitelist (String par1Str)
 
Set getWhiteListedPlayers ()
 
Set getOps ()
 
void loadWhiteList ()
 
void updateTimeAndWeatherForPlayer (EntityPlayerMP par1EntityPlayerMP, WorldServer par2WorldServer)
 
void syncPlayerInventory (EntityPlayerMP par1EntityPlayerMP)
 
int getCurrentPlayerCount ()
 
int getMaxPlayers ()
 
String[] getAvailablePlayerDat ()
 
boolean isWhiteListEnabled ()
 
void setWhiteListEnabled (boolean par1)
 
List getPlayerList (String par1Str)
 
int getViewDistance ()
 
MinecraftServer getServerInstance ()
 
NBTTagCompound getHostPlayerData ()
 
void setGameType (EnumGameType par1EnumGameType)
 
void setCommandsAllowedForAll (boolean par1)
 
void removeAllPlayers ()
 
void sendChatMsg (String par1Str)
 

Public Attributes

final List playerEntityList = new ArrayList()
 

Protected Member Functions

void func_96456_a (ServerScoreboard par1ServerScoreboard, EntityPlayerMP par2EntityPlayerMP)
 
void writePlayerData (EntityPlayerMP par1EntityPlayerMP)
 

Protected Attributes

int maxPlayers
 
int viewDistance
 

Constructor & Destructor Documentation

net.minecraft.server.management.ServerConfigurationManager.ServerConfigurationManager ( MinecraftServer  par1MinecraftServer)

Member Function Documentation

void net.minecraft.server.management.ServerConfigurationManager.addOp ( String  par1Str)

This adds a username to the ops list, then saves the op list

void net.minecraft.server.management.ServerConfigurationManager.addToWhiteList ( String  par1Str)

Add the specified player to the white list.

String net.minecraft.server.management.ServerConfigurationManager.allowUserToConnect ( SocketAddress  par1SocketAddress,
String  par2Str 
)

checks ban-lists, then white-lists, then space for the server. Returns null on success, or an error message

boolean net.minecraft.server.management.ServerConfigurationManager.areCommandsAllowed ( String  par1Str)

Returns true if the specific player is allowed to use commands.

EntityPlayerMP net.minecraft.server.management.ServerConfigurationManager.createPlayerForUser ( String  par1Str)

also checks for multiple logins

List net.minecraft.server.management.ServerConfigurationManager.findPlayers ( ChunkCoordinates  par1ChunkCoordinates,
int  par2,
int  par3,
int  par4,
int  par5,
int  par6,
int  par7,
Map  par8Map,
String  par9Str,
String  par10Str 
)

Find all players in a specified range and narrowing down by other parameters

void net.minecraft.server.management.ServerConfigurationManager.func_72375_a ( EntityPlayerMP  par1EntityPlayerMP,
WorldServer  par2WorldServer 
)
void net.minecraft.server.management.ServerConfigurationManager.func_96456_a ( ServerScoreboard  par1ServerScoreboard,
EntityPlayerMP  par2EntityPlayerMP 
)
protected
String [] net.minecraft.server.management.ServerConfigurationManager.getAllUsernames ( )

Returns an array of the usernames of all the connected players.

String [] net.minecraft.server.management.ServerConfigurationManager.getAvailablePlayerDat ( )

Returns an array of usernames for which player.dat exists for.

BanList net.minecraft.server.management.ServerConfigurationManager.getBannedIPs ( )
BanList net.minecraft.server.management.ServerConfigurationManager.getBannedPlayers ( )
int net.minecraft.server.management.ServerConfigurationManager.getCurrentPlayerCount ( )

Returns the number of players currently on the server.

int net.minecraft.server.management.ServerConfigurationManager.getEntityViewDistance ( )
NBTTagCompound net.minecraft.server.management.ServerConfigurationManager.getHostPlayerData ( )

On integrated servers, returns the host's player data to be written to level.dat.

int net.minecraft.server.management.ServerConfigurationManager.getMaxPlayers ( )

Returns the maximum number of players allowed on the server.

Set net.minecraft.server.management.ServerConfigurationManager.getOps ( )
EntityPlayerMP net.minecraft.server.management.ServerConfigurationManager.getPlayerForUsername ( String  par1Str)
List net.minecraft.server.management.ServerConfigurationManager.getPlayerList ( String  par1Str)
String net.minecraft.server.management.ServerConfigurationManager.getPlayerListAsString ( )

returns a string containing a comma-seperated list of player names

MinecraftServer net.minecraft.server.management.ServerConfigurationManager.getServerInstance ( )
int net.minecraft.server.management.ServerConfigurationManager.getViewDistance ( )

Gets the View Distance.

Set net.minecraft.server.management.ServerConfigurationManager.getWhiteListedPlayers ( )

Returns the whitelisted players.

void net.minecraft.server.management.ServerConfigurationManager.initializeConnectionToPlayer ( INetworkManager  par1INetworkManager,
EntityPlayerMP  par2EntityPlayerMP 
)
boolean net.minecraft.server.management.ServerConfigurationManager.isAllowedToLogin ( String  par1Str)

Determine if the player is allowed to connect based on current server settings.

boolean net.minecraft.server.management.ServerConfigurationManager.isWhiteListEnabled ( )
void net.minecraft.server.management.ServerConfigurationManager.loadWhiteList ( )

Either does nothing, or calls readWhiteList.

void net.minecraft.server.management.ServerConfigurationManager.playerLoggedIn ( EntityPlayerMP  par1EntityPlayerMP)

Called when a player successfully logs in. Reads player data from disk and inserts the player into the world.

void net.minecraft.server.management.ServerConfigurationManager.playerLoggedOut ( EntityPlayerMP  par1EntityPlayerMP)

Called when a player disconnects from the game. Writes player data to disk and removes them from the world.

NBTTagCompound net.minecraft.server.management.ServerConfigurationManager.readPlayerDataFromFile ( EntityPlayerMP  par1EntityPlayerMP)

called during player login. reads the player information from disk.

void net.minecraft.server.management.ServerConfigurationManager.removeAllPlayers ( )

Kicks everyone with "Server closed" as reason.

void net.minecraft.server.management.ServerConfigurationManager.removeFromWhitelist ( String  par1Str)

Remove the specified player from the whitelist.

void net.minecraft.server.management.ServerConfigurationManager.removeOp ( String  par1Str)

This removes a username from the ops list, then saves the op list

EntityPlayerMP net.minecraft.server.management.ServerConfigurationManager.respawnPlayer ( EntityPlayerMP  par1EntityPlayerMP,
int  par2,
boolean  par3 
)

creates and returns a respawned player based on the provided PlayerEntity. Args are the PlayerEntityMP to respawn, an INT for the dimension to respawn into (usually 0), and a boolean value that is true if the player beat the game rather than dying

void net.minecraft.server.management.ServerConfigurationManager.saveAllPlayerData ( )

Saves all of the players' current states.

void net.minecraft.server.management.ServerConfigurationManager.sendChatMsg ( String  par1Str)

Sends the given string to every player as chat message.

void net.minecraft.server.management.ServerConfigurationManager.sendPacketToAllPlayers ( Packet  par1Packet)

sends a packet to all players

void net.minecraft.server.management.ServerConfigurationManager.sendPacketToAllPlayersInDimension ( Packet  par1Packet,
int  par2 
)

Sends a packet to all players in the specified Dimension

void net.minecraft.server.management.ServerConfigurationManager.sendPlayerInfoToAllPlayers ( )

sends 1 player per tick, but only sends a player once every 600 ticks

void net.minecraft.server.management.ServerConfigurationManager.sendToAllNear ( double  par1,
double  par3,
double  par5,
double  par7,
int  par9,
Packet  par10Packet 
)

params: x,y,z,d,dimension. The packet is sent to all players within d distance of x,y,z (d^2<x^2+y^2+z^2)

void net.minecraft.server.management.ServerConfigurationManager.sendToAllNearExcept ( EntityPlayer  par1EntityPlayer,
double  par2,
double  par4,
double  par6,
double  par8,
int  par10,
Packet  par11Packet 
)

params: srcPlayer,x,y,z,d,dimension. The packet is not sent to the srcPlayer, but all other players where dx*dx+dy*dy+dz*dz<d*d

void net.minecraft.server.management.ServerConfigurationManager.serverUpdateMountedMovingPlayer ( EntityPlayerMP  par1EntityPlayerMP)

using player's dimension, update their movement when in a vehicle (e.g. cart, boat)

void net.minecraft.server.management.ServerConfigurationManager.setCommandsAllowedForAll ( boolean  par1)

Sets whether all players are allowed to use commands (cheats) on the server.

void net.minecraft.server.management.ServerConfigurationManager.setGameType ( EnumGameType  par1EnumGameType)
void net.minecraft.server.management.ServerConfigurationManager.setPlayerManager ( WorldServer[]  par1ArrayOfWorldServer)

Sets the NBT manager to the one for the WorldServer given.

void net.minecraft.server.management.ServerConfigurationManager.setWhiteListEnabled ( boolean  par1)
void net.minecraft.server.management.ServerConfigurationManager.syncPlayerInventory ( EntityPlayerMP  par1EntityPlayerMP)

sends the players inventory to himself

void net.minecraft.server.management.ServerConfigurationManager.transferEntityToWorld ( Entity  par1Entity,
int  par2,
WorldServer  par3WorldServer,
WorldServer  par4WorldServer 
)

Transfers an entity from a world to another world.

void net.minecraft.server.management.ServerConfigurationManager.transferEntityToWorld ( Entity  par1Entity,
int  par2,
WorldServer  par3WorldServer,
WorldServer  par4WorldServer,
Teleporter  teleporter 
)
void net.minecraft.server.management.ServerConfigurationManager.transferPlayerToDimension ( EntityPlayerMP  par1EntityPlayerMP,
int  par2 
)
void net.minecraft.server.management.ServerConfigurationManager.transferPlayerToDimension ( EntityPlayerMP  par1EntityPlayerMP,
int  par2,
Teleporter  teleporter 
)
void net.minecraft.server.management.ServerConfigurationManager.updateTimeAndWeatherForPlayer ( EntityPlayerMP  par1EntityPlayerMP,
WorldServer  par2WorldServer 
)

Updates the time and weather for the given player to those of the given world

void net.minecraft.server.management.ServerConfigurationManager.writePlayerData ( EntityPlayerMP  par1EntityPlayerMP)
protected

also stores the NBTTags if this is an intergratedPlayerList

Member Data Documentation

int net.minecraft.server.management.ServerConfigurationManager.maxPlayers
protected

The maximum number of players that can be connected at a time.

final List net.minecraft.server.management.ServerConfigurationManager.playerEntityList = new ArrayList()

A list of player entities that exist on this server.

int net.minecraft.server.management.ServerConfigurationManager.viewDistance
protected

The documentation for this class was generated from the following file: