Class Vec2f

java.lang.Object
net.minecraft.util.math.Vec2f

public class Vec2f extends Object
An immutable vector composed of 2 floats.
Mappings:
Namespace Name
named net/minecraft/util/math/Vec2f
intermediary net/minecraft/class_241
official fbw
  • Field Details

    • ZERO

      public static final Vec2f ZERO
      Mappings:
      Namespace Name Mixin selector
      named ZERO Lnet/minecraft/util/math/Vec2f;ZERO:Lnet/minecraft/util/math/Vec2f;
      intermediary field_1340 Lnet/minecraft/class_241;field_1340:Lnet/minecraft/class_241;
      official a Lfbw;a:Lfbw;
    • SOUTH_EAST_UNIT

      public static final Vec2f SOUTH_EAST_UNIT
      Mappings:
      Namespace Name Mixin selector
      named SOUTH_EAST_UNIT Lnet/minecraft/util/math/Vec2f;SOUTH_EAST_UNIT:Lnet/minecraft/util/math/Vec2f;
      intermediary field_1335 Lnet/minecraft/class_241;field_1335:Lnet/minecraft/class_241;
      official b Lfbw;b:Lfbw;
    • EAST_UNIT

      public static final Vec2f EAST_UNIT
      Mappings:
      Namespace Name Mixin selector
      named EAST_UNIT Lnet/minecraft/util/math/Vec2f;EAST_UNIT:Lnet/minecraft/util/math/Vec2f;
      intermediary field_1341 Lnet/minecraft/class_241;field_1341:Lnet/minecraft/class_241;
      official c Lfbw;c:Lfbw;
    • WEST_UNIT

      public static final Vec2f WEST_UNIT
      Mappings:
      Namespace Name Mixin selector
      named WEST_UNIT Lnet/minecraft/util/math/Vec2f;WEST_UNIT:Lnet/minecraft/util/math/Vec2f;
      intermediary field_1338 Lnet/minecraft/class_241;field_1338:Lnet/minecraft/class_241;
      official d Lfbw;d:Lfbw;
    • SOUTH_UNIT

      public static final Vec2f SOUTH_UNIT
      Mappings:
      Namespace Name Mixin selector
      named SOUTH_UNIT Lnet/minecraft/util/math/Vec2f;SOUTH_UNIT:Lnet/minecraft/util/math/Vec2f;
      intermediary field_1336 Lnet/minecraft/class_241;field_1336:Lnet/minecraft/class_241;
      official e Lfbw;e:Lfbw;
    • NORTH_UNIT

      public static final Vec2f NORTH_UNIT
      Mappings:
      Namespace Name Mixin selector
      named NORTH_UNIT Lnet/minecraft/util/math/Vec2f;NORTH_UNIT:Lnet/minecraft/util/math/Vec2f;
      intermediary field_1344 Lnet/minecraft/class_241;field_1344:Lnet/minecraft/class_241;
      official f Lfbw;f:Lfbw;
    • MAX_SOUTH_EAST

      public static final Vec2f MAX_SOUTH_EAST
      Mappings:
      Namespace Name Mixin selector
      named MAX_SOUTH_EAST Lnet/minecraft/util/math/Vec2f;MAX_SOUTH_EAST:Lnet/minecraft/util/math/Vec2f;
      intermediary field_1337 Lnet/minecraft/class_241;field_1337:Lnet/minecraft/class_241;
      official g Lfbw;g:Lfbw;
    • MIN_SOUTH_EAST

      public static final Vec2f MIN_SOUTH_EAST
      Mappings:
      Namespace Name Mixin selector
      named MIN_SOUTH_EAST Lnet/minecraft/util/math/Vec2f;MIN_SOUTH_EAST:Lnet/minecraft/util/math/Vec2f;
      intermediary field_1339 Lnet/minecraft/class_241;field_1339:Lnet/minecraft/class_241;
      official h Lfbw;h:Lfbw;
    • x

      public final float x
      Mappings:
      Namespace Name Mixin selector
      named x Lnet/minecraft/util/math/Vec2f;x:F
      intermediary field_1343 Lnet/minecraft/class_241;field_1343:F
      official i Lfbw;i:F
    • y

      public final float y
      Mappings:
      Namespace Name Mixin selector
      named y Lnet/minecraft/util/math/Vec2f;y:F
      intermediary field_1342 Lnet/minecraft/class_241;field_1342:F
      official j Lfbw;j:F
  • Constructor Details

    • Vec2f

      public Vec2f(float x, float y)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/util/math/Vec2f;<init>(FF)V
      intermediary <init> Lnet/minecraft/class_241;<init>(FF)V
      official <init> Lfbw;<init>(FF)V
  • Method Details

    • multiply

      public Vec2f multiply(float value)
      Mappings:
      Namespace Name Mixin selector
      named multiply Lnet/minecraft/util/math/Vec2f;multiply(F)Lnet/minecraft/util/math/Vec2f;
      intermediary method_35582 Lnet/minecraft/class_241;method_35582(F)Lnet/minecraft/class_241;
      official a Lfbw;a(F)Lfbw;
    • dot

      public float dot(Vec2f vec)
      Mappings:
      Namespace Name Mixin selector
      named dot Lnet/minecraft/util/math/Vec2f;dot(Lnet/minecraft/util/math/Vec2f;)F
      intermediary method_35583 Lnet/minecraft/class_241;method_35583(Lnet/minecraft/class_241;)F
      official a Lfbw;a(Lfbw;)F
    • add

      public Vec2f add(Vec2f vec)
      Mappings:
      Namespace Name Mixin selector
      named add Lnet/minecraft/util/math/Vec2f;add(Lnet/minecraft/util/math/Vec2f;)Lnet/minecraft/util/math/Vec2f;
      intermediary method_35586 Lnet/minecraft/class_241;method_35586(Lnet/minecraft/class_241;)Lnet/minecraft/class_241;
      official b Lfbw;b(Lfbw;)Lfbw;
    • add

      public Vec2f add(float value)
      Mappings:
      Namespace Name Mixin selector
      named add Lnet/minecraft/util/math/Vec2f;add(F)Lnet/minecraft/util/math/Vec2f;
      intermediary method_35585 Lnet/minecraft/class_241;method_35585(F)Lnet/minecraft/class_241;
      official b Lfbw;b(F)Lfbw;
    • equals

      public boolean equals(Vec2f other)
      Mappings:
      Namespace Name Mixin selector
      named equals Lnet/minecraft/util/math/Vec2f;equals(Lnet/minecraft/util/math/Vec2f;)Z
      intermediary method_1016 Lnet/minecraft/class_241;method_1016(Lnet/minecraft/class_241;)Z
      official c Lfbw;c(Lfbw;)Z
    • normalize

      public Vec2f normalize()
      Mappings:
      Namespace Name Mixin selector
      named normalize Lnet/minecraft/util/math/Vec2f;normalize()Lnet/minecraft/util/math/Vec2f;
      intermediary method_35581 Lnet/minecraft/class_241;method_35581()Lnet/minecraft/class_241;
      official a Lfbw;a()Lfbw;
    • length

      public float length()
      Mappings:
      Namespace Name Mixin selector
      named length Lnet/minecraft/util/math/Vec2f;length()F
      intermediary method_35584 Lnet/minecraft/class_241;method_35584()F
      official b Lfbw;b()F
    • lengthSquared

      public float lengthSquared()
      Mappings:
      Namespace Name Mixin selector
      named lengthSquared Lnet/minecraft/util/math/Vec2f;lengthSquared()F
      intermediary method_35587 Lnet/minecraft/class_241;method_35587()F
      official c Lfbw;c()F
    • distanceSquared

      public float distanceSquared(Vec2f vec)
      Mappings:
      Namespace Name Mixin selector
      named distanceSquared Lnet/minecraft/util/math/Vec2f;distanceSquared(Lnet/minecraft/util/math/Vec2f;)F
      intermediary method_35589 Lnet/minecraft/class_241;method_35589(Lnet/minecraft/class_241;)F
      official d Lfbw;d(Lfbw;)F
    • negate

      public Vec2f negate()
      Mappings:
      Namespace Name Mixin selector
      named negate Lnet/minecraft/util/math/Vec2f;negate()Lnet/minecraft/util/math/Vec2f;
      intermediary method_35588 Lnet/minecraft/class_241;method_35588()Lnet/minecraft/class_241;
      official d Lfbw;d()Lfbw;