Created
October 13, 2014 14:45
-
-
Save thomas15v/7a11849c03369300b959 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.player.EntityPlayerMP; | |
import org.spongepowered.api.entity.Player; | |
import org.spongepowered.mod.mixin.Mixin; | |
import org.spongepowered.mod.mixin.Shadow; | |
@Mixin(EntityPlayerMP.class) | |
public abstract class MixinPlayer implements Player { | |
@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