Skip to content

Instantly share code, notes, and snippets.

@thomas15v
Created October 13, 2014 14:45
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/7a11849c03369300b959 to your computer and use it in GitHub Desktop.
Save thomas15v/7a11849c03369300b959 to your computer and use it in GitHub Desktop.
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