cScoreboard


Index:
Articles
Classes
Hooks

Quick navigation:
cArrowEntity
cBeaconEntity
cBlockArea
cBlockEntity
cBlockEntityWithItems
cBlockInfo
cBoundingBox
cBrewingstandEntity
cChatColor
cChestEntity
cChunkDesc
cClientHandle
cCommandBlockEntity
cCompositeChat
cCraftingGrid
cCraftingRecipe
cCryptoHash
cCuboid
cDispenserEntity
cDropperEntity
cDropSpenserEntity
cEnchantments
cEntity
cEntityEffect
cExpBottleEntity
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 Name, Type, Value Adds a value to all player scores of the specified objective type.
ForEachObjective CallBackFunction bool 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 CallBackFunction bool 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 string cObjective Returns the objective with the specified name.
GetObjectiveIn DisplaySlot cObjective Returns the objective in the specified display slot. Can be nil.
GetTeam string cTeam Returns the team with the specified name.
GetTeamNames array table of strings Returns the names of all teams
RegisterObjective Name, DisplayName, Type cObjective Registers a new scoreboard objective. Returns the cObjective instance, nil on error.
RegisterTeam Name, DisplayName, Prefix, Suffix cTeam Registers a new team. Returns the cTeam instance, nil on error.
RemoveObjective string bool Removes the objective with the specified name. Returns true if operation was successful.
RemoveTeam string bool Removes the team with the specified name. Returns true if operation was successful.
SetDisplay Name, DisplaySlot Updates the currently displayed objective.
Generated on 2016-08-22 23:53:06, Build ID Unknown, Commit approx: 2ed4af74edd14ae17e1c6c64d44caa7b7fc30d5a