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
official dit
intermediary net/minecraft/class_241
named net/minecraft/util/math/Vec2f
  • Field Details

    • ZERO

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

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

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

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

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

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

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

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

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

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

    • Vec2f

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

    • equals

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