程序包 org.bukkit.block.spawner

# 类 SpawnerEntry.Equipment

java.lang.Object
org.bukkit.block.spawner.SpawnerEntry.Equipment

封闭类:
  SpawnerEntry

public static class SpawnerEntry.Equipment extends Object
Represents the equipment loot table applied to a spawned entity.

- ## 构造器概要

  构造器
  构造器
  说明
  `Equipment(@NotNull LootTable equipmentLootTable, @NotNull Map<EquipmentSlot,Float> dropChances)`

- ## 方法概要

  修饰符和类型
  方法
  说明
  `@NotNull Map<EquipmentSlot,Float>`
  `getDropChances()`
  Gets a mutable map of the drop chances for each slot of the entity.
  `@NotNull LootTable`
  `getEquipmentLootTable()`
  Gets the loot table for the entity.
  `void`
  `setEquipmentLootTable(@NotNull LootTable table)`
  Set the loot table for the entity.

  ### 从类继承的方法 java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## 构造器详细资料

  - ### Equipment

    public Equipment(@NotNull @NotNull LootTable equipmentLootTable, @NotNull @NotNull Map<EquipmentSlot,Float> dropChances)

- ## 方法详细资料

  - ### setEquipmentLootTable

    public void setEquipmentLootTable(@NotNull @NotNull LootTable table)
    Set the loot table for the entity.
    To remove a loot table use null. Do not use `LootTables.EMPTY` to clear a LootTable.
    参数:
      `table` - this `Mob` will have.

  - ### getEquipmentLootTable

    @NotNull public @NotNull LootTable getEquipmentLootTable()
    Gets the loot table for the entity.
    If an entity does not have a loot table, this will return null, NOT an empty loot table.
    返回:
      the loot table for this entity.

  - ### getDropChances

    @NotNull public @NotNull Map<EquipmentSlot,Float> getDropChances()
    Gets a mutable map of the drop chances for each slot of the entity. If non-null, the entity's drop chances will be overridden with the given value.
    返回:
      mutable map of drop chances