Skip to content

Instantly share code, notes, and snippets.

@thomas15v
Created October 13, 2014 15:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thomas15v/943280156f829f634169 to your computer and use it in GitHub Desktop.
Save thomas15v/943280156f829f634169 to your computer and use it in GitHub Desktop.
package org.spongepowered.mixin.impl;
import net.minecraft.entity.EntityLivingBase;
import net.minecraft.entity.player.EntityPlayer;
import org.spongepowered.api.component.attribute.Damageable;
import org.spongepowered.api.entity.Player;
import org.spongepowered.mod.mixin.Mixin;
import org.spongepowered.mod.mixin.Shadow;
@Mixin(net.minecraft.entity.EntityLivingBase.class)
public abstract class MixinEntityLivingBase implements Damageable {
@Shadow(prefix = "shadow$") abstract float shadow$getHealth();
@Override
public double getHealth() {
return shadow$getHealth();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment