接口 LootChoice

  • 所有已知实现类:
    LeafEntry.Choice

    public interface LootChoice
    Mappings:
    Namespace Name
    official dig
    intermediary net/minecraft/class_82
    named net/minecraft/loot/LootChoice
    • 方法详细资料

      • getWeight

        int getWeight​(float luck)
        Mappings:
        Namespace Name Mixin selector
        official a Ldig;a(F)I
        intermediary method_427 Lnet/minecraft/class_82;method_427(F)I
        named getWeight Lnet/minecraft/loot/LootChoice;getWeight(F)I
      • generateLoot

        void generateLoot​(Consumer<ItemStack> lootConsumer,
                          LootContext context)
        Mappings:
        Namespace Name Mixin selector
        official a Ldig;a(Ljava/util/function/Consumer;Ldhp;)V
        intermediary method_426 Lnet/minecraft/class_82;method_426(Ljava/util/function/Consumer;Lnet/minecraft/class_47;)V
        named generateLoot Lnet/minecraft/loot/LootChoice;generateLoot(Ljava/util/function/Consumer;Lnet/minecraft/loot/context/LootContext;)V