dev.the_fireplace.grandeconomy.mixin.ServerPlayerEntityMixin Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of GrandEconomy Show documentation
Show all versions of GrandEconomy Show documentation
A server-side economy mod/api for Minecraft.
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