类 InitAttachmentInfo

java.lang.Object
net.minecraft.world.level.storage.loot.functions.LootItemConditionalFunction
mod.chloeprime.gunsmithlib.common.loot.InitAttachmentInfo
所有已实现的接口:
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 InitAttachmentInfo 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<InitAttachmentInfo>
     

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

    predicates
  • 构造器概要

    构造器
    构造器
    说明
    InitAttachmentInfo(List<net.minecraft.world.level.storage.loot.predicates.LootItemCondition> conditions, net.minecraft.resources.ResourceLocation attachmentId)
     
  • 方法概要

    修饰符和类型
    方法
    说明
    net.minecraft.resources.ResourceLocation
     
    net.minecraft.world.level.storage.loot.functions.LootItemFunctionType<InitAttachmentInfo>
     
    static net.minecraft.world.level.storage.loot.functions.LootItemConditionalFunction.Builder<?>
    initAttachmentInfo(net.minecraft.resources.ResourceLocation attachmentId)
     
    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
  • 字段详细资料

  • 构造器详细资料

    • InitAttachmentInfo

      public InitAttachmentInfo(List<net.minecraft.world.level.storage.loot.predicates.LootItemCondition> conditions, net.minecraft.resources.ResourceLocation attachmentId)
  • 方法详细资料

    • initAttachmentInfo

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

      public net.minecraft.resources.ResourceLocation getAttachmentId()
    • 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<InitAttachmentInfo> getType()
      指定者:
      getType 在接口中 net.minecraft.world.level.storage.loot.functions.LootItemFunction
      指定者:
      getType 在类中 net.minecraft.world.level.storage.loot.functions.LootItemConditionalFunction