Unicopia/src/main/java/com/minelittlepony/unicopia/projectile/ProjectileDelegate.java

18 lines
572 B
Java
Raw Normal View History

package com.minelittlepony.unicopia.projectile;
import net.minecraft.block.BlockState;
import net.minecraft.entity.Entity;
import net.minecraft.util.math.BlockPos;
2022-09-14 11:53:31 +02:00
public interface ProjectileDelegate {
/**
* Called once the projectile lands either hitting the ground or an entity.
*/
2022-09-14 11:53:31 +02:00
default void onImpact(MagicProjectileEntity projectile, BlockPos pos, BlockState state) {}
/**
* Called once the projectile lands either hitting the ground or an entity.
*/
2022-09-14 11:53:31 +02:00
default void onImpact(MagicProjectileEntity projectile, Entity entity) {}
}