类 InitGunInfo

java.lang.Object
net.minecraft.world.level.storage.loot.functions.LootItemConditionalFunction
mod.chloeprime.gunsmithlib.common.loot.InitGunInfo
所有已实现的接口:
BiFunction<net.minecraft.world.item.ItemStack,net.minecraft.world.level.storage.loot.LootContext,net.minecraft.world.item.ItemStack>, net.minecraft.world.level.storage.loot.functions.LootItemFunction, net.minecraft.world.level.storage.loot.LootContextUser

@ParametersAreNonnullByDefault public class InitGunInfo extends net.minecraft.world.level.storage.loot.functions.LootItemConditionalFunction
  • 嵌套类概要

    从类继承的嵌套类/接口 net.minecraft.world.level.storage.loot.functions.LootItemConditionalFunction

    net.minecraft.world.level.storage.loot.functions.LootItemConditionalFunction.Builder<T extends net.minecraft.world.level.storage.loot.functions.LootItemConditionalFunction.Builder<T>>
  • 字段概要

    字段
    修饰符和类型
    字段
    说明
    static final com.mojang.serialization.MapCodec<InitGunInfo>
     

    从类继承的字段 net.minecraft.world.level.storage.loot.functions.LootItemConditionalFunction

    predicates
  • 构造器概要

    构造器
    构造器
    说明
    InitGunInfo(List<net.minecraft.world.level.storage.loot.predicates.LootItemCondition> conditions, net.minecraft.resources.ResourceLocation gunId, net.minecraft.world.level.storage.loot.providers.number.NumberProvider ammoCount)
     
  • 方法概要

    修饰符和类型
    方法
    说明
    net.minecraft.resources.ResourceLocation
     
    net.minecraft.world.level.storage.loot.providers.number.NumberProvider
     
    net.minecraft.world.level.storage.loot.functions.LootItemFunctionType<InitGunInfo>
     
    static net.minecraft.world.level.storage.loot.functions.LootItemConditionalFunction.Builder<?>
    initGunInfo(net.minecraft.resources.ResourceLocation gunId)
     
    static net.minecraft.world.level.storage.loot.functions.LootItemConditionalFunction.Builder<?>
    initGunInfo(net.minecraft.resources.ResourceLocation gunId, net.minecraft.world.level.storage.loot.providers.number.NumberProvider ammo)
     
    net.minecraft.world.item.ItemStack
    run(net.minecraft.world.item.ItemStack stack, net.minecraft.world.level.storage.loot.LootContext context)
     

    从类继承的方法 net.minecraft.world.level.storage.loot.functions.LootItemConditionalFunction

    apply, commonFields, simpleBuilder, validate

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

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

    从接口继承的方法 java.util.function.BiFunction

    andThen

    从接口继承的方法 net.minecraft.world.level.storage.loot.LootContextUser

    getReferencedContextParams
  • 字段详细资料

    • CODEC

      public static final com.mojang.serialization.MapCodec<InitGunInfo> CODEC
  • 构造器详细资料

    • InitGunInfo

      public InitGunInfo(List<net.minecraft.world.level.storage.loot.predicates.LootItemCondition> conditions, net.minecraft.resources.ResourceLocation gunId, net.minecraft.world.level.storage.loot.providers.number.NumberProvider ammoCount)
  • 方法详细资料

    • initGunInfo

      public static net.minecraft.world.level.storage.loot.functions.LootItemConditionalFunction.Builder<?> initGunInfo(net.minecraft.resources.ResourceLocation gunId)
    • initGunInfo

      public static net.minecraft.world.level.storage.loot.functions.LootItemConditionalFunction.Builder<?> initGunInfo(net.minecraft.resources.ResourceLocation gunId, net.minecraft.world.level.storage.loot.providers.number.NumberProvider ammo)
    • getGunId

      public net.minecraft.resources.ResourceLocation getGunId()
    • getInitialAmmoCount

      public net.minecraft.world.level.storage.loot.providers.number.NumberProvider getInitialAmmoCount()
    • run

      @Nonnull public net.minecraft.world.item.ItemStack run(net.minecraft.world.item.ItemStack stack, net.minecraft.world.level.storage.loot.LootContext context)
      指定者:
      run 在类中 net.minecraft.world.level.storage.loot.functions.LootItemConditionalFunction
    • getType

      @Nonnull public net.minecraft.world.level.storage.loot.functions.LootItemFunctionType<InitGunInfo> getType()
      指定者:
      getType 在接口中 net.minecraft.world.level.storage.loot.functions.LootItemFunction
      指定者:
      getType 在类中 net.minecraft.world.level.storage.loot.functions.LootItemConditionalFunction