Class ToolHitEffectDispatcher

java.lang.Object
net.xun.armory.impl.item.tools.ToolHitEffectDispatcher

public final class ToolHitEffectDispatcher extends Object
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    maybeTriggerHitEffect(net.minecraft.world.entity.LivingEntity target, net.minecraft.world.entity.LivingEntity attacker, net.minecraft.world.item.ItemStack weaponStack)
    Looks up the given stack's tool metadata and, if its customizer defines a hit effect, triggers it.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • maybeTriggerHitEffect

      public static void maybeTriggerHitEffect(net.minecraft.world.entity.LivingEntity target, net.minecraft.world.entity.LivingEntity attacker, net.minecraft.world.item.ItemStack weaponStack)
      Looks up the given stack's tool metadata and, if its customizer defines a hit effect, triggers it. No-ops silently if the stack has no tool metadata, the customizer isn't an AbstractHitEffectCustomizer, or the call happens on the client.