GameController
Index
Functions
attack
Triggers server-side "PlayerAttack" and "EntityHurt".
Parameters
entityUid: number
Returns void
buildBlock
Triggers server-side "BuildBlock".
Parameters
x: number
y: number
z: number
side: number
Returns void
continueBuildBlock
Parameters
x: number
y: number
z: number
side: number
Returns void
continueDestroyBlock
Triggers client-side "DestroyBlockContinue" and "DestroyBlockStart" (on zero progress).
Parameters
x: number
y: number
z: number
side: number
Returns boolean
destroyBlock
Triggers server-side "BreakBlock" and "DestroyBlock" (if not prevented).
Parameters
x: number
y: number
z: number
side: number
Returns void
interact
Triggers server-side "EntityInteract".
Parameters
entityUid: number
x: number
y: number
z: number
Returns void
onItemUse
Triggers server-side "ItemUse" and "ItemUseServer" with client-side "ItemUseLocal" and "ItemUseLocalServer".
Parameters
x: number
y: number
z: number
side: number
Returns void
releaseUsingItem
Returns void
startBuildBlock
Parameters
x: number
y: number
z: number
side: number
Returns void
startDestroyBlock
Parameters
x: number
y: number
z: number
side: number
Returns boolean
stopBuildBlock
Returns void
stopDestroyBlock
Interrupts destruction animation.
Parameters
x: number
y: number
z: number
Returns void
Methods for manipulating player with world, use callbacks of callbacks in their implementation.
2.4.0b120