Package net.minecraft

Record Class class_12392

java.lang.Object
java.lang.Record
net.minecraft.class_12392
Record Components:
minRange -
maxRange -
hitboxMargin -
mobFactor -

public record class_12392(float minRange, float maxRange, float hitboxMargin, float mobFactor) extends Record
Mappings:
Namespace Name
named net/minecraft/class_12392
intermediary net/minecraft/class_12392
official dnu
named minRange
intermediary comp_5260
official d
named maxRange
intermediary comp_5261
official e
named hitboxMargin
intermediary comp_5262
official f
named mobFactor
intermediary comp_5263
official g
  • Field Details

    • minRange

      private final float minRange
      The field for the minRange record component.
    • maxRange

      private final float maxRange
      The field for the maxRange record component.
    • hitboxMargin

      private final float hitboxMargin
      The field for the hitboxMargin record component.
    • mobFactor

      private final float mobFactor
      The field for the mobFactor record component.
    • field_64653

      public static final class_12392 field_64653
      Mappings:
      Namespace Name Mixin selector
      named field_64653 Lnet/minecraft/class_12392;field_64653:Lnet/minecraft/class_12392;
      intermediary field_64653 Lnet/minecraft/class_12392;field_64653:Lnet/minecraft/class_12392;
      official a Ldnu;a:Ldnu;
    • CODEC

      public static final com.mojang.serialization.Codec<class_12392> CODEC
      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/class_12392;CODEC:Lcom/mojang/serialization/Codec;
      intermediary field_64654 Lnet/minecraft/class_12392;field_64654:Lcom/mojang/serialization/Codec;
      official b Ldnu;b:Lcom/mojang/serialization/Codec;
    • field_64655

      public static final PacketCodec<ByteBuf,class_12392> field_64655
      Mappings:
      Namespace Name Mixin selector
      named field_64655 Lnet/minecraft/class_12392;field_64655:Lnet/minecraft/network/codec/PacketCodec;
      intermediary field_64655 Lnet/minecraft/class_12392;field_64655:Lnet/minecraft/class_9139;
      official c Ldnu;c:Laao;
  • Constructor Details

    • class_12392

      public class_12392(float minRange, float maxRange, float hitboxMargin, float mobFactor)
      Creates an instance of a class_12392 record class.
      Parameters:
      minRange - the value for the minRange record component
      maxRange - the value for the maxRange record component
      hitboxMargin - the value for the hitboxMargin record component
      mobFactor - the value for the mobFactor record component
  • Method Details

    • method_76734

      public static class_12392 method_76734(LivingEntity livingEntity)
      Mappings:
      Namespace Name Mixin selector
      named method_76734 Lnet/minecraft/class_12392;method_76734(Lnet/minecraft/entity/LivingEntity;)Lnet/minecraft/class_12392;
      intermediary method_76734 Lnet/minecraft/class_12392;method_76734(Lnet/minecraft/class_1309;)Lnet/minecraft/class_12392;
      official a Ldnu;a(Lchl;)Ldnu;
    • method_76733

      public HitResult method_76733(Entity entity, float float2, Predicate<Entity> predicate)
      Mappings:
      Namespace Name Mixin selector
      named method_76733 Lnet/minecraft/class_12392;method_76733(Lnet/minecraft/entity/Entity;FLjava/util/function/Predicate;)Lnet/minecraft/util/hit/HitResult;
      intermediary method_76733 Lnet/minecraft/class_12392;method_76733(Lnet/minecraft/class_1297;FLjava/util/function/Predicate;)Lnet/minecraft/class_239;
      official a Ldnu;a(Lcgk;FLjava/util/function/Predicate;)Lftk;
    • method_76732

      public double method_76732(Entity entity)
      Mappings:
      Namespace Name Mixin selector
      named method_76732 Lnet/minecraft/class_12392;method_76732(Lnet/minecraft/entity/Entity;)D
      intermediary method_76732 Lnet/minecraft/class_12392;method_76732(Lnet/minecraft/class_1297;)D
      official a Ldnu;a(Lcgk;)D
    • method_76739

      public double method_76739(Entity entity)
      Mappings:
      Namespace Name Mixin selector
      named method_76739 Lnet/minecraft/class_12392;method_76739(Lnet/minecraft/entity/Entity;)D
      intermediary method_76739 Lnet/minecraft/class_12392;method_76739(Lnet/minecraft/class_1297;)D
      official b Ldnu;b(Lcgk;)D
    • method_76736

      public boolean method_76736(LivingEntity livingEntity, Vec3d vec3d)
      Mappings:
      Namespace Name Mixin selector
      named method_76736 Lnet/minecraft/class_12392;method_76736(Lnet/minecraft/entity/LivingEntity;Lnet/minecraft/util/math/Vec3d;)Z
      intermediary method_76736 Lnet/minecraft/class_12392;method_76736(Lnet/minecraft/class_1309;Lnet/minecraft/class_243;)Z
      official a Ldnu;a(Lchl;Lftm;)Z
    • method_76735

      public boolean method_76735(LivingEntity livingEntity, Box box, double double2)
      Mappings:
      Namespace Name Mixin selector
      named method_76735 Lnet/minecraft/class_12392;method_76735(Lnet/minecraft/entity/LivingEntity;Lnet/minecraft/util/math/Box;D)Z
      intermediary method_76735 Lnet/minecraft/class_12392;method_76735(Lnet/minecraft/class_1309;Lnet/minecraft/class_238;D)Z
      official a Ldnu;a(Lchl;Lfth;D)Z
    • method_76737

      private boolean method_76737(LivingEntity livingEntity, ToDoubleFunction<Vec3d> toDoubleFunction, double double2)
      Mappings:
      Namespace Name Mixin selector
      named method_76737 Lnet/minecraft/class_12392;method_76737(Lnet/minecraft/entity/LivingEntity;Ljava/util/function/ToDoubleFunction;D)Z
      intermediary method_76737 Lnet/minecraft/class_12392;method_76737(Lnet/minecraft/class_1309;Ljava/util/function/ToDoubleFunction;D)Z
      official a Ldnu;a(Lchl;Ljava/util/function/ToDoubleFunction;D)Z
    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object object)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      object - the object with which to compare
      Returns:
      true if this object is the same as the object argument; false otherwise.
    • minRange

      public float minRange()
      Returns the value of the minRange record component.
      Returns:
      the value of the minRange record component
    • maxRange

      public float maxRange()
      Returns the value of the maxRange record component.
      Returns:
      the value of the maxRange record component
    • hitboxMargin

      public float hitboxMargin()
      Returns the value of the hitboxMargin record component.
      Returns:
      the value of the hitboxMargin record component
    • mobFactor

      public float mobFactor()
      Returns the value of the mobFactor record component.
      Returns:
      the value of the mobFactor record component