BlockService

继承自

描述

沙盒方块顶级服务节点

函数

voidDropBlockAsItem (SandboxNode_Ref workspace, SandboxVector3 pos, int droptype, float chance, int useToolId)
将方块从道具栏丢弃
voidSetBlock (SandboxNode_Ref workspace, SandboxVector3 pos, int blockid, int dir)
修改方块朝向
voidReplaceBlock (SandboxNode_Ref workspace, SandboxVector3 pos, int srcId, int destId)
替换方块
voidDestroyBlock (SandboxNode_Ref workspace, SandboxVector3 pos, bool bDropItem)
销毁方块
voidSetBlockAttrState (SandboxNode_Ref workspace, int blockid, int attrType, bool bActive)
设置方块属性状态
设置功能方块触发器(区域笔刷)
voidAreaFillBlock (SandboxNode_Ref workspace, SandboxNode_Ref areaNode, int blockid)
区域内填充方块
区域内删除方块
voidAreaReplaceBlock (SandboxNode_Ref workspace, SandboxNode_Ref areaNode, int srcId, int destId)
区域替换方块
区域拷贝方块
voidSetBlockSettingAttState (SandboxNode_Ref workspace, int blockid, int attr, bool bOpen)
设置方块的属性设置状态
intGetRayBlock (SandboxNode_Ref workspace, SandboxVector3 vector3, int face, float distance)
获取方块光线
是否固体方块
是否液体方块
是否空气方块
获取方块朝向数据
获取方块材质
获取方块节点
Last Updated: