-
-
Save anonymous/974e905d5d47b782b4b9 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
@SubscribeEvent | |
public void interact(PlayerInteractEvent event){ | |
Minecraft mc = Minecraft.getMinecraft(); | |
MovingObjectPosition objectOver = mc.objectMouseOver; | |
Target = objectOver.entityHit; | |
friend = (EntityPlayer) Target; | |
System.out.println("Friend food level: " + friend.getFoodStats().getFoodLevel()); | |
System.out.println("Friend saturation level: " + friend.getFoodStats().getSaturationLevel()); | |
System.out.println("friend health" + friend.getHealth()); | |
System.out.println("friend max health" + friend.getMaxHealth()); | |
System.out.println("can friend eat?: " + friend.getFoodStats().needFood()); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment