类 GunAttachmentAttributeAggregator
java.lang.Object
mod.chloeprime.gunsmithlib.common.gunpack_extension.shared.attribute.GunAttachmentAttributeAggregator
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static voidattachmentAttributeModifierTooltip(net.minecraft.world.item.ItemStack attachment, List<net.minecraft.network.chat.Component> tooltip, net.minecraft.world.entity.player.Player player, net.minecraft.world.item.Item.TooltipContext context, net.minecraft.world.item.TooltipFlag flag) static net.minecraft.world.item.component.ItemAttributeModifiersgetAttachmentAttributeModifiers(net.minecraft.world.item.ItemStack stack) static net.minecraft.world.item.component.ItemAttributeModifiersgetAttachmentIndexAttributeModifiers(com.tacz.guns.resource.index.CommonAttachmentIndex index) static net.minecraft.world.item.component.ItemAttributeModifiersgetGunIndexAttributeModifiers(com.tacz.guns.resource.index.CommonGunIndex index) static com.google.common.collect.Multimap<net.minecraft.core.Holder<net.minecraft.world.entity.ai.attributes.Attribute>, net.minecraft.world.entity.ai.attributes.AttributeModifier> getSortedModifiers(net.minecraft.world.item.ItemStack stack, net.minecraft.world.item.component.ItemAttributeModifiers modifiers) static voidonGunAttribute(net.neoforged.neoforge.event.ItemAttributeModifierEvent event)
-
构造器详细资料
-
GunAttachmentAttributeAggregator
public GunAttachmentAttributeAggregator()
-
-
方法详细资料
-
getGunIndexAttributeModifiers
public static net.minecraft.world.item.component.ItemAttributeModifiers getGunIndexAttributeModifiers(com.tacz.guns.resource.index.CommonGunIndex index) -
getAttachmentIndexAttributeModifiers
public static net.minecraft.world.item.component.ItemAttributeModifiers getAttachmentIndexAttributeModifiers(com.tacz.guns.resource.index.CommonAttachmentIndex index) -
getAttachmentAttributeModifiers
public static net.minecraft.world.item.component.ItemAttributeModifiers getAttachmentAttributeModifiers(net.minecraft.world.item.ItemStack stack) -
onGunAttribute
public static void onGunAttribute(net.neoforged.neoforge.event.ItemAttributeModifierEvent event) -
attachmentAttributeModifierTooltip
public static void attachmentAttributeModifierTooltip(net.minecraft.world.item.ItemStack attachment, List<net.minecraft.network.chat.Component> tooltip, net.minecraft.world.entity.player.Player player, net.minecraft.world.item.Item.TooltipContext context, net.minecraft.world.item.TooltipFlag flag) -
getSortedModifiers
public static com.google.common.collect.Multimap<net.minecraft.core.Holder<net.minecraft.world.entity.ai.attributes.Attribute>,net.minecraft.world.entity.ai.attributes.AttributeModifier> getSortedModifiers(net.minecraft.world.item.ItemStack stack, net.minecraft.world.item.component.ItemAttributeModifiers modifiers)
-