use of WayofTime.alchemicalWizardry.common.items.EnergySword in project BloodMagic by WayofTime.
the class AlchemicalWizardryEventHooks method onEntityInteractEvent.
@SubscribeEvent
public void onEntityInteractEvent(EntityInteractEvent event) {
EntityPlayer player = event.entityPlayer;
OmegaParadigm parad = OmegaRegistry.getOmegaParadigmOfWeilder(player);
if (parad == null) {
return;
}
ItemStack heldItem = player.getHeldItem();
if (heldItem == null) {
parad.onEmptyHandEntityInteract(player, event.target);
} else {
if (heldItem.getItem() instanceof EnergySword) {
parad.onBoundSwordInteractWithEntity(player, event.target);
}
}
}
Aggregations