use of com.lying.variousoddities.api.event.FireworkExplosionEvent in project VariousOddities by Lyinginbedmon.
the class FireworkRocketEntityMixin method onFireworkBlast.
@Inject(method = "func_213893_k", at = @At("HEAD"))
public void onFireworkBlast(CallbackInfo callbackInfo) {
ItemStack stack = this.getDataManager().get(FIREWORK_ITEM);
CompoundNBT stackData = !stack.isEmpty() ? stack.getChildTag("Fireworks") : null;
MinecraftForge.EVENT_BUS.post(new FireworkExplosionEvent(this.world, this.getPosX(), this.getPosY(), this.getPosZ(), stackData));
}
Aggregations