类 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.
  • 构造器详细资料

  • 方法详细资料

    • setEquipmentLootTable

      public void setEquipmentLootTable(@NotNull @NotNull LootTable table)
      设置实体的战利品表。
      要移除战利品表,使用null。 原文:Set the loot table for the entity.
      To remove a loot table use null.
      参数:
      table - 这个Mob将拥有的战利品表。 原文: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()
      获取实体每个槽位掉落概率的可变映射。 如果非null,实体的掉落概率将被给定的值覆盖。 原文: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