Created
October 13, 2014 15:37
-
-
Save thomas15v/943280156f829f634169 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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