cUUID


Index:
Articles
Classes
Hooks

Quick navigation:
cArrowEntity
cBeaconEntity
cBedEntity
cBlockArea
cBlockEntity
cBlockEntityWithItems
cBlockInfo
cBoat
cBoundingBox
cBrewingstandEntity
cChatColor
cChestEntity
cChunkDesc
cClientHandle
cColor
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
cLeashKnot
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
cUUID
cWebAdmin
cWindow
cWitherSkullEntity
cWorld
EffectID
HTTPFormData
HTTPRequest
HTTPTemplateRequest
ItemCategory
lxp
SmokeDirection
sqlite3
TakeDamageInfo
tolua
Vector3d
Vector3f
Vector3i
Globals

Contents


cUUID class

Class representing a Universally Unique Identifier. Note that all Cuberite's API functions that take a cUUID parameter will also accept a string in its place, as long as that string can be converted to a cUUID (using the cUUID:FromString function).


Functions

NameParametersReturn valueNotes
() (constructor)
cUUID
Constructs a nil-valued UUID (all zeros)
Compare
OthercUUID
number
Compares this UUID with the specified Other UUID, Returns: 0 when equal to Other, < 0 when less than Other, > 0 when greater than Other
FromString
StringUUIDstring
boolean
Tries to interpret the string as a short or long form UUID and assign from it. On error, returns false and does not set the value.
GenerateVersion3
Namestring
cUUID
(STATIC) Generates a version 3, variant 1 UUID based on the md5 hash of Name.
IsNil
boolean
Returns true if this contains the "nil" UUID with all bits set to 0
ToLongString
string
Converts the UUID to a long form string (i.e with dashes).
ToShortString
string
Converts the UUID to a short form string (i.e without dashes).
Variant
number
Returns the variant number of the UUID
Version
number
Returns the version number of the UUID.
Generated by APIDump on 2017-11-20 05:00:07, Build ID Unknown, Commit approx: c54bf40ef96806bf836db205f79e60d016b7eee9