Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
component:3d_printer:zh [2023/10/21 15:33]
hfsr created
component:3d_printer:zh [2023/12/10 15:01] (current)
hfsr [3D打印机]
Line 1: Line 1:
-3D Printer+组件:3D打印机
 ================= =================
- +此组件由[[block:​3d_printer|3D打印机]]方块提供。 ​  ​
-This component is provided by the [[block:​3d_printer|3D ​Printer]] block. ​  ​+
   ​   ​
-Component name: `printer3d` +组件名:`printer3d`。  
   ​   ​
-Callbacks:+回调函数: ​
  
 - `commit(count:​number):​boolean`  ​ - `commit(count:​number):​boolean`  ​
-  ​Commit and begin printing the current configuration.+  ​确认当前配置并开始打印。 ​  
 +\\
 - `setLabel(value:​string)`  ​ - `setLabel(value:​string)`  ​
-  ​Set the label for the volume being printed.+  ​设定当前打印工件的标签。 ​  
 +\\
 - `getLabel():​string`  ​ - `getLabel():​string`  ​
-  ​Get the current label for the volume being printed.+  ​获取当前打印工件的标签。 ​  
 +\\
 - `setTooltip(value:​string)`  ​ - `setTooltip(value:​string)`  ​
-  ​Sets the tooltip for the volume being printed.+  ​设定当前打印工件的提示文本。 ​  
 +\\
 - `getTooltip():​string`  ​ - `getTooltip():​string`  ​
-  ​Gets the current tooltip of the volume being printed.+  ​获取当前打印工件的提示文本。 ​  
 +\\
 - `setButtonMode(value:​boolean)`  ​ - `setButtonMode(value:​boolean)`  ​
-  ​Set whether the printed block should automatically return to its off state.+  ​设定当前打印的方块是否会自动回到关闭状态。 ​  
 +\\
 - `isButtonMode():​boolean`  ​ - `isButtonMode():​boolean`  ​
-  ​Gets whether the printed block should automatically return to its off state.+  ​获取当前打印的方块是否会自动回到关闭状态。 ​  
 +\\
 - `setRedstoneEmitter(value:​boolean)`  ​ - `setRedstoneEmitter(value:​boolean)`  ​
-  ​Sets whether the printed block should emit a redstone signal while in its active state.+  ​设定当前打印的方块是否会在处于激活状态时发出红石信号。 ​  
 +\\
 - `isRedstoneEmitter():​boolean`  ​ - `isRedstoneEmitter():​boolean`  ​
-  ​Gets whether the printed block should emit a redstone signal while in its active state.+  ​获取当前打印的方块是否会在处于激活状态时发出红石信号。 ​  
 +\\
 - `addShape(minX:​number,​ minY:​number,​ minZ:​number,​ maxX:​number,​ maxY:​number,​ maxZ:​number,​ texture:​string [,​state:​boolean = false] [,​tint:​number])`  ​ - `addShape(minX:​number,​ minY:​number,​ minZ:​number,​ maxX:​number,​ maxY:​number,​ maxZ:​number,​ texture:​string [,​state:​boolean = false] [,​tint:​number])`  ​
-  ​Adds the shape to the printer'​s current configuration,​ optionally specifying whether it is for the off or on state.+  ​将给定形状(立方体的对角顶点坐标)添加到打印机的当前配置中,可选指定此形状是否仅限于关或开状态下显示。 ​  
 +\\
 - `getShapeCount():​number`  ​ - `getShapeCount():​number`  ​
-  ​Gets the number of shapes in the current configuration.+  ​获取当前配置中的形状数。 ​  
 +\\
 - `getMaxShapeCount():​number`  ​ - `getMaxShapeCount():​number`  ​
-  ​Gets the maximum allowed number of shapes.+  ​获取最大允许存在的形状数。 ​  
 +\\
 - `status():​string,​ number or boolean`  ​ - `status():​string,​ number or boolean`  ​
-  ​The current state of the printer, 'busy' or '​idle'​ (string), followed by the progress (number) or model validity (boolean), respectively.+  ​返回打印机的当前状态,`busy`(忙碌)或`idel`(闲置)(字符串型值),两种状态下的第二个参数分别是进度(数字型)和模型的合理性(布尔型)。 ​  
 +\\
 - `reset()`  ​ - `reset()`  ​
-  ​Resets the current job for the printer and stops printing (current job being printed will finish).+  ​重置打印机的当前工作,停止打印(正在打印的工件会完成)。
  
-Contents+目录
 ------------------ ------------------
  
-{{page>​component:​contents&​noheader&​noeditbutton&​nouser&​nofooter}}+{{page>​component:​contents:zh&​noheader&​noeditbutton&​nouser&​nofooter}}