程序包 org.bukkit.block

接口 BlockType.Typed<B extends BlockData>

类型参数:
B - the generic type of the block data that represents the block type.
所有超级接口:
BlockType, Keyed, Translatable
封闭接口:
BlockType

public static interface BlockType.Typed<B extends BlockData> extends BlockType
Typed represents a subtype of BlockTypes that have a known block data type at compile time.
  • 方法详细资料

    • getBlockDataClass

      @NotNull @NotNull Class<B> getBlockDataClass()
      Gets the BlockData class of this BlockType
      指定者:
      getBlockDataClass 在接口中 BlockType
      返回:
      the BlockData class of this BlockType
    • createBlockData

      @NotNull B createBlockData(@Nullable @Nullable Consumer<? super B> consumer)
      Creates a new BlockData instance for this block type, with all properties initialized to unspecified defaults.
      参数:
      consumer - consumer to run on new instance before returning
      返回:
      new data instance
    • createBlockData

      @NotNull B createBlockData()
      Creates a new BlockData instance for this block type, with all properties initialized to unspecified defaults.
      指定者:
      createBlockData 在接口中 BlockType
      返回:
      new data instance
    • createBlockData

      @NotNull B createBlockData(@Nullable @Nullable String data)
      Creates a new BlockData instance for this block type, with all properties initialized to unspecified defaults, except for those provided in data.
      指定者:
      createBlockData 在接口中 BlockType
      参数:
      data - data string
      返回:
      new data instance
      抛出:
      IllegalArgumentException - if the specified data is not valid