public final class TransformUtil
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static net.minecraft.util.Vec3 |
hitToUV(Face face,
Port facing,
net.minecraft.util.Vec3 hitPos)
Project a hit position on the surface of a block to a UV coordinate on
the that side, taking into account potential rotation of the block
around the Y axis (up being south).
|
static net.minecraft.util.Vec3 |
hitToUV(Face face,
net.minecraft.util.Vec3 hitPos)
Project a hit position on the surface of a block to a UV coordinate on
the that side.
|
public static net.minecraft.util.Vec3 hitToUV(Face face, net.minecraft.util.Vec3 hitPos)
face - the face to project the hit onto.hitPos - the hit position to project, in block local coordinates.public static net.minecraft.util.Vec3 hitToUV(Face face, Port facing, net.minecraft.util.Vec3 hitPos)
face - the face to project the hit onto.facing - the rotation of the block.hitPos - the hit position to project, in block local coordinates.Face.fromEnumFacing(EnumFacing),
Port.fromEnumFacing(EnumFacing)