接口 PackedBlock

所有已知实现类:
MinecraftContentProvider.PackedMinecraftBlock

public interface PackedBlock
An interface of every content provider's blocks
  • 方法概要

    修饰符和类型
    方法
    说明
    Get the id of the block
    void
    place(@NotNull Location location)
    Place the block at a location
    @Nullable ItemStack
    Gets the item of the block
  • 方法详细资料

    • place

      void place(@NotNull @NotNull Location location)
      Place the block at a location
      参数:
      location - the location
    • getId

      String getId()
      Get the id of the block
      返回:
      id of the block
    • toItem

      @Nullable @Nullable ItemStack toItem()
      Gets the item of the block
      返回:
      the item of the block