Skip to content

Commit

Permalink
More Debug ness
Browse files Browse the repository at this point in the history
  • Loading branch information
strubium committed Sep 5, 2024
1 parent f31f8da commit 894e522
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.entity.player.EntityPlayerMP;
import net.minecraft.potion.PotionEffect;
import net.minecraft.util.math.BlockPos;
import net.minecraft.world.World;

import java.util.Collection;
Expand Down Expand Up @@ -92,7 +93,7 @@ public void addProbeEntityInfo(ProbeMode mode, IProbeInfo probeInfo, EntityPlaye
vertical
.text(LABEL + "Is Left Handed: " + INFO + isLeftHanded)
.text(LABEL + "Max Fall Height: " + INFO + maxFallHeight)
.text(LABEL + "Max Spawning in Chunk: " + INFO + maxInChunk);
.text(LABEL + "Max Spawnable in Chunk: " + INFO + maxInChunk);
}

if (entity instanceof EntityAgeable) {
Expand All @@ -114,10 +115,14 @@ public void addProbeEntityInfo(ProbeMode mode, IProbeInfo probeInfo, EntityPlaye
EntityPlayer entityPlayer = (EntityPlayer) entity;
int foodLevel = entityPlayer.getFoodStats().getFoodLevel();
float saturationLevel = entityPlayer.getFoodStats().getSaturationLevel();
float luck = entityPlayer.getLuck();
BlockPos bedLocation = entityPlayer.getBedLocation();

vertical
.text(LABEL + "Food Level: " + INFO + foodLevel)
.text(LABEL + "Saturation Level: " + INFO + saturationLevel);
.text(LABEL + "Saturation Level: " + INFO + saturationLevel)
.text(LABEL + "Luck: " + INFO + luck)
.text(LABEL + "Bed Location: "+ INFO + bedLocation);
}
}
}
Expand Down

0 comments on commit 894e522

Please sign in to comment.