public class UtilMcForge
extends java.lang.Object
Constructor and Description |
---|
UtilMcForge() |
Modifier and Type | Method and Description |
---|---|
static net.minecraftforge.common.util.ForgeDirection |
getEntityOrientation(float yaw)
Gets the direction of an entity based on their rotation
|
static net.minecraftforge.common.util.ForgeDirection |
getEntityOrientation(float yaw,
float pitch)
Similar to
getEntityOrientation(float) , but takes pitch into consideration |
static javax.vecmath.Vector3d |
getPosAtSide(javax.vecmath.Vector3d here,
net.minecraftforge.common.util.ForgeDirection face) |
static void |
giveItemStack(net.minecraft.entity.player.EntityPlayer p,
net.minecraft.item.ItemStack is)
Gives the ItemStack to the player.
|
public static javax.vecmath.Vector3d getPosAtSide(javax.vecmath.Vector3d here, net.minecraftforge.common.util.ForgeDirection face)
here
- The location of the reference pointface
- The side of the block we need to shift the location towardspublic static net.minecraftforge.common.util.ForgeDirection getEntityOrientation(float yaw)
yaw
- The yaw of the entity (e.rotationYaw)public static net.minecraftforge.common.util.ForgeDirection getEntityOrientation(float yaw, float pitch)
getEntityOrientation(float)
, but takes pitch into considerationyaw
- The yaw of the entity (e.rotationYaw)pitch
- The pitch of the entity (e.rotationPitch)public static void giveItemStack(net.minecraft.entity.player.EntityPlayer p, net.minecraft.item.ItemStack is)