cScoreboard


Index:
Articles
Classes
Hooks

Quick navigation:
cArrowEntity
cBeaconEntity
cBlockArea
cBlockEntity
cBlockEntityWithItems
cBlockInfo
cBoat
cBoundingBox
cBrewingstandEntity
cChatColor
cChestEntity
cChunkDesc
cClientHandle
cCommandBlockEntity
cCompositeChat
cCraftingGrid
cCraftingRecipe
cCryptoHash
cCuboid
cDispenserEntity
cDropperEntity
cDropSpenserEntity
cEnchantments
cEntity
cEntityEffect
cExpBottleEntity
cExpOrb
cFallingBlock
cFile
cFireChargeEntity
cFireworkEntity
cFloater
cFlowerPotEntity
cFurnaceEntity
cGhastFireballEntity
cHangingEntity
cHopperEntity
cIniFile
cInventory
cItem
cItemFrame
cItemGrid
cItems
cJson
cJukeboxEntity
cLineBlockTracer
cLuaWindow
cMap
cMapManager
cMobHeadEntity
cMobSpawnerEntity
cMojangAPI
cMonster
cNetwork
cNoteEntity
cObjective
cPainting
cPawn
cPickup
cPlayer
cPlugin
cPluginLua
cPluginManager
cProjectileEntity
cRankManager
cRoot
cScoreboard
cServer
cServerHandle
cSignEntity
cSplashPotionEntity
cStatManager
cStringCompression
cTCPLink
cTeam
cThrownEggEntity
cThrownEnderPearlEntity
cThrownSnowballEntity
cTNTEntity
cTracer
cUDPEndpoint
cUrlClient
cUrlParser
cWebAdmin
cWindow
cWitherSkullEntity
cWorld
HTTPFormData
HTTPRequest
HTTPTemplateRequest
ItemCategory
lxp
sqlite3
TakeDamageInfo
tolua
Vector3d
Vector3f
Vector3i
Globals

Contents


cScoreboard class

This class manages the objectives and teams of a single world.


Constants

NameValueNotes
dsCount 3
dsList 0
dsName 2
dsSidebar 1

Functions

NameParametersReturn valueNotes
AddPlayerScore
Namestring
Type
Value
Adds a value to all player scores of the specified objective type.
ForEachObjective
CallbackFunctionfunction
boolean
Calls the specified callback for each objective in the scoreboard. Returns true if all objectives have been processed (including when there are zero objectives), or false if the callback function has aborted the enumeration by returning true. The callback function has the following signature:
function Callback(Objective)
The callback should return false or no value to continue with the next objective, or true to abort the enumeration.
ForEachTeam
CallbackFunctionfunction
boolean
Calls the specified callback for each team in the scoreboard. Returns true if all teams have been processed (including when there are zero teams), or false if the callback function has aborted the enumeration by returning true. The callback function has the following signature:
function Callback(Objective)
The callback should return false or no value to continue with the next team, or true to abort the enumeration.
GetNumObjectives
number
Returns the nuber of registered objectives.
GetNumTeams
number
Returns the number of registered teams.
GetObjective
stringstring
cObjective
Returns the objective with the specified name.
GetObjectiveIn
DisplaySlot
cObjective
Returns the objective in the specified display slot. Can be nil.
GetTeam
TeamNamestring
cTeam
Returns the team with the specified name.
GetTeamNames
table
Returns the names of all teams, as an array-table of strings
RegisterObjective
Namestring
DisplayNamestring
Type
cObjective
Registers a new scoreboard objective. Returns the cObjective instance, nil on error.
RegisterTeam
Namestring
DisplayNamestring
Prefix
Suffix
cTeam
Registers a new team. Returns the cTeam instance, nil on error.
RemoveObjective
Namestring
boolean
Removes the objective with the specified name. Returns true if operation was successful.
RemoveTeam
TeamNamestring
boolean
Removes the team with the specified name. Returns true if operation was successful.
SetDisplay
Namestring
DisplaySlot
Updates the currently displayed objective.
Generated on 2017-06-26 01:00:07, Build ID Unknown, Commit approx: bd025e2bdbaf86425b1d692ffc4aa87c3c086cc7