类 GunAttachmentAttributeAggregator

java.lang.Object
mod.chloeprime.gunsmithlib.common.gunpack_extension.shared.attribute.GunAttachmentAttributeAggregator

public class GunAttachmentAttributeAggregator extends Object
  • 构造器概要

    构造器
    构造器
    说明
     
  • 方法概要

    修饰符和类型
    方法
    说明
    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)
     
    static net.minecraft.world.item.component.ItemAttributeModifiers
    getAttachmentAttributeModifiers(net.minecraft.world.item.ItemStack stack)
     
    static net.minecraft.world.item.component.ItemAttributeModifiers
    getAttachmentIndexAttributeModifiers(com.tacz.guns.resource.index.CommonAttachmentIndex index)
     
    static net.minecraft.world.item.component.ItemAttributeModifiers
    getGunIndexAttributeModifiers(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 void
    onGunAttribute(net.neoforged.neoforge.event.ItemAttributeModifierEvent event)
     

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

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 构造器详细资料

    • 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)