package asm.accessors;

import net.fabricmc.api.EnvType;
import net.fabricmc.api.Environment;
import net.minecraft.entity.LivingEntity;
import net.minecraft.entity.projectile.FireworkRocketEntity;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.gen.Accessor;
import org.spongepowered.asm.mixin.gen.Invoker;

@Environment(EnvType.CLIENT)
@Mixin({FireworkRocketEntity.class})
public interface IFireworkRocketEntity {
   @Accessor("shooter")
   LivingEntity getShooter();

   @Invoker("wasShotByEntity")
   boolean hookWasShotByEntity();

   @Invoker("explodeAndRemove")
   void hookExplodeAndRemove();
}
