All Downloads are FREE. Search and download functionalities are using the official Maven repository.

dev.the_fireplace.grandeconomy.mixin.ServerPlayerEntityMixin Maven / Gradle / Ivy

There is a newer version: 4.1.0+1.16.5
Show newest version
package dev.the_fireplace.grandeconomy.mixin;

import dev.the_fireplace.grandeconomy.events.KillingEvents;
import net.minecraft.class_1282;
import net.minecraft.class_3222;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.injection.At;
import org.spongepowered.asm.mixin.injection.Inject;
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;

@SuppressWarnings({"ConstantConditions", "unused"})
@Mixin(class_3222.class)
public class ServerPlayerEntityMixin {
    @Inject(at = @At("HEAD"), method = "onDeath")
    public void onDeath(class_1282 damageSource, CallbackInfo info) {
        KillingEvents.onPlayerDeath((class_3222)(Object)this, damageSource);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy