程序包 org.bukkit.util

接口 BlockTransformer.TransformationState

封闭接口:
BlockTransformer

public static interface BlockTransformer.TransformationState
TransformationState 允许访问原始方块状态以及转换开始前世界中转换位置处方块的状态。
  • 方法概要

    修饰符和类型
    方法
    说明
    创建结构想要放置的原始方块状态的克隆,并为当前转换器缓存它。
    创建在转换过程开始时当前修改方块位置处方块状态的克隆,并为当前转换器缓存它。
  • 方法详细资料

    • getOriginal

      创建结构想要放置的原始方块状态的克隆,并为当前转换器缓存它。

      原文: Creates a clone of the original block state that a structure wanted to place and caches it for the current transformer.

      返回:
      原始方块状态的克隆。
    • getWorld

      创建在转换过程开始时当前修改方块位置处方块状态的克隆,并为当前转换器缓存它。

      原文: Creates a clone of the block state that was at the location of the currently modified block at the start of the transformation process and caches it for the current transformer.

      返回:
      世界方块状态的克隆。