类 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>> -
字段概要
字段从类继承的字段 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.ResourceLocationnet.minecraft.world.level.storage.loot.functions.LootItemFunctionType<InitAttachmentInfo> getType()static net.minecraft.world.level.storage.loot.functions.LootItemConditionalFunction.Builder<?> initAttachmentInfo(net.minecraft.resources.ResourceLocation attachmentId) net.minecraft.world.item.ItemStackrun(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
-
-
构造器详细资料
-
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
-