Class VecUtils

java.lang.Object
com.binaris.wizardry.api.content.util.VecUtils

public final class VecUtils extends Object
  • Method Summary

    Modifier and Type
    Method
    Description
    static net.minecraft.world.phys.Vec3
    flattenToHorizontal(net.minecraft.world.phys.Vec3 vec)
     
    static net.minecraft.world.phys.Vec3
    getFaceCentre(net.minecraft.core.BlockPos pos, net.minecraft.core.Direction face)
     
    static net.minecraft.world.phys.Vec3[]
    getVertices(net.minecraft.world.phys.AABB box)
     
    static net.minecraft.world.phys.Vec3
    replaceComponent(net.minecraft.world.phys.Vec3 vec, net.minecraft.core.Direction.Axis axis, double newValue)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • flattenToHorizontal

      public static net.minecraft.world.phys.Vec3 flattenToHorizontal(net.minecraft.world.phys.Vec3 vec)
    • replaceComponent

      public static net.minecraft.world.phys.Vec3 replaceComponent(net.minecraft.world.phys.Vec3 vec, net.minecraft.core.Direction.Axis axis, double newValue)
    • getFaceCentre

      public static net.minecraft.world.phys.Vec3 getFaceCentre(net.minecraft.core.BlockPos pos, net.minecraft.core.Direction face)
    • getVertices

      public static net.minecraft.world.phys.Vec3[] getVertices(net.minecraft.world.phys.AABB box)