类 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>> -
字段概要
字段从类继承的字段 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.ResourceLocationgetGunId()net.minecraft.world.level.storage.loot.providers.number.NumberProvidernet.minecraft.world.level.storage.loot.functions.LootItemFunctionType<InitGunInfo> getType()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.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
-
-
构造器详细资料
-
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
-