public final class PlayerUtils
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static void |
addExhaustion(net.minecraft.entity.player.EntityPlayer player,
float exhaustion) |
static void |
changeFreeAimDistance(float delta)
Change the distance at which the free-aim pointer is positioned.
|
static float |
getAimDistance() |
static net.minecraft.util.math.BlockPos |
getLookAtPos(net.minecraft.entity.player.EntityPlayer player) |
static net.minecraft.util.EnumFacing |
getPrimaryFacing(net.minecraft.entity.player.EntityPlayer player) |
static net.minecraft.util.math.BlockPos |
getRaytrace(net.minecraft.entity.player.EntityPlayer player) |
static net.minecraft.util.EnumFacing |
getSideHit(net.minecraft.entity.player.EntityPlayer player) |
static net.minecraft.util.math.RayTraceResult |
rayTracePlayerLook(net.minecraft.entity.player.EntityPlayer player) |
static void |
setAimDistance(float distance) |
public static void changeFreeAimDistance(float delta)
delta - the amount by which to change the distance.public static void setAimDistance(float distance)
public static float getAimDistance()
public static net.minecraft.util.math.BlockPos getLookAtPos(net.minecraft.entity.player.EntityPlayer player)
public static net.minecraft.util.math.BlockPos getRaytrace(net.minecraft.entity.player.EntityPlayer player)
@Nullable public static net.minecraft.util.EnumFacing getSideHit(net.minecraft.entity.player.EntityPlayer player)
@Nullable public static net.minecraft.util.math.RayTraceResult rayTracePlayerLook(net.minecraft.entity.player.EntityPlayer player)
public static net.minecraft.util.EnumFacing getPrimaryFacing(net.minecraft.entity.player.EntityPlayer player)
public static void addExhaustion(net.minecraft.entity.player.EntityPlayer player,
float exhaustion)