Package net.xun.armory.impl.item.tools
Class ToolHitEffectDispatcher
java.lang.Object
net.xun.armory.impl.item.tools.ToolHitEffectDispatcher
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidmaybeTriggerHitEffect(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.
-
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 anAbstractHitEffectCustomizer, or the call happens on the client.
-