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_12392intermediary net/minecraft/class_12392official dnunamed minRangeintermediary comp_5260official dnamed maxRangeintermediary comp_5261official enamed hitboxMarginintermediary comp_5262official fnamed mobFactorintermediary comp_5263official g
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<class_12392> static final class_12392static final PacketCodec<ByteBuf, class_12392> private final floatThe field for thehitboxMarginrecord component.private final floatThe field for themaxRangerecord component.private final floatThe field for theminRangerecord component.private final floatThe field for themobFactorrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionclass_12392(float minRange, float maxRange, float hitboxMargin, float mobFactor) Creates an instance of aclass_12392record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.floatReturns the value of thehitboxMarginrecord component.floatmaxRange()Returns the value of themaxRangerecord component.doublemethod_76732(Entity entity) method_76733(Entity entity, float float2, Predicate<Entity> predicate) static class_12392method_76734(LivingEntity livingEntity) booleanmethod_76735(LivingEntity livingEntity, Box box, double double2) booleanmethod_76736(LivingEntity livingEntity, Vec3d vec3d) private booleanmethod_76737(LivingEntity livingEntity, ToDoubleFunction<Vec3d> toDoubleFunction, double double2) doublemethod_76739(Entity entity) floatminRange()Returns the value of theminRangerecord component.floatReturns the value of themobFactorrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
minRange
private final float minRangeThe field for theminRangerecord component. -
maxRange
private final float maxRangeThe field for themaxRangerecord component. -
hitboxMargin
private final float hitboxMarginThe field for thehitboxMarginrecord component. -
mobFactor
private final float mobFactorThe field for themobFactorrecord component. -
field_64653
- Mappings:
Namespace Name Mixin selector named field_64653Lnet/minecraft/class_12392;field_64653:Lnet/minecraft/class_12392;intermediary field_64653Lnet/minecraft/class_12392;field_64653:Lnet/minecraft/class_12392;official aLdnu;a:Ldnu;
-
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/class_12392;CODEC:Lcom/mojang/serialization/Codec;intermediary field_64654Lnet/minecraft/class_12392;field_64654:Lcom/mojang/serialization/Codec;official bLdnu;b:Lcom/mojang/serialization/Codec;
-
field_64655
- Mappings:
Namespace Name Mixin selector named field_64655Lnet/minecraft/class_12392;field_64655:Lnet/minecraft/network/codec/PacketCodec;intermediary field_64655Lnet/minecraft/class_12392;field_64655:Lnet/minecraft/class_9139;official cLdnu;c:Laao;
-
-
Constructor Details
-
class_12392
public class_12392(float minRange, float maxRange, float hitboxMargin, float mobFactor) Creates an instance of aclass_12392record class.- Parameters:
minRange- the value for theminRangerecord componentmaxRange- the value for themaxRangerecord componenthitboxMargin- the value for thehitboxMarginrecord componentmobFactor- the value for themobFactorrecord component
-
-
Method Details
-
method_76734
- Mappings:
Namespace Name Mixin selector named method_76734Lnet/minecraft/class_12392;method_76734(Lnet/minecraft/entity/LivingEntity;)Lnet/minecraft/class_12392;intermediary method_76734Lnet/minecraft/class_12392;method_76734(Lnet/minecraft/class_1309;)Lnet/minecraft/class_12392;official aLdnu;a(Lchl;)Ldnu;
-
method_76733
- Mappings:
Namespace Name Mixin selector named method_76733Lnet/minecraft/class_12392;method_76733(Lnet/minecraft/entity/Entity;FLjava/util/function/Predicate;)Lnet/minecraft/util/hit/HitResult;intermediary method_76733Lnet/minecraft/class_12392;method_76733(Lnet/minecraft/class_1297;FLjava/util/function/Predicate;)Lnet/minecraft/class_239;official aLdnu;a(Lcgk;FLjava/util/function/Predicate;)Lftk;
-
method_76732
- Mappings:
Namespace Name Mixin selector named method_76732Lnet/minecraft/class_12392;method_76732(Lnet/minecraft/entity/Entity;)Dintermediary method_76732Lnet/minecraft/class_12392;method_76732(Lnet/minecraft/class_1297;)Dofficial aLdnu;a(Lcgk;)D
-
method_76739
- Mappings:
Namespace Name Mixin selector named method_76739Lnet/minecraft/class_12392;method_76739(Lnet/minecraft/entity/Entity;)Dintermediary method_76739Lnet/minecraft/class_12392;method_76739(Lnet/minecraft/class_1297;)Dofficial bLdnu;b(Lcgk;)D
-
method_76736
- Mappings:
Namespace Name Mixin selector named method_76736Lnet/minecraft/class_12392;method_76736(Lnet/minecraft/entity/LivingEntity;Lnet/minecraft/util/math/Vec3d;)Zintermediary method_76736Lnet/minecraft/class_12392;method_76736(Lnet/minecraft/class_1309;Lnet/minecraft/class_243;)Zofficial aLdnu;a(Lchl;Lftm;)Z
-
method_76735
- Mappings:
Namespace Name Mixin selector named method_76735Lnet/minecraft/class_12392;method_76735(Lnet/minecraft/entity/LivingEntity;Lnet/minecraft/util/math/Box;D)Zintermediary method_76735Lnet/minecraft/class_12392;method_76735(Lnet/minecraft/class_1309;Lnet/minecraft/class_238;D)Zofficial aLdnu;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_76737Lnet/minecraft/class_12392;method_76737(Lnet/minecraft/entity/LivingEntity;Ljava/util/function/ToDoubleFunction;D)Zintermediary method_76737Lnet/minecraft/class_12392;method_76737(Lnet/minecraft/class_1309;Ljava/util/function/ToDoubleFunction;D)Zofficial aLdnu;a(Lchl;Ljava/util/function/ToDoubleFunction;D)Z
-
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. -
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. -
equals
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 '=='. -
minRange
public float minRange()Returns the value of theminRangerecord component.- Returns:
- the value of the
minRangerecord component
-
maxRange
public float maxRange()Returns the value of themaxRangerecord component.- Returns:
- the value of the
maxRangerecord component
-
hitboxMargin
public float hitboxMargin()Returns the value of thehitboxMarginrecord component.- Returns:
- the value of the
hitboxMarginrecord component
-
mobFactor
public float mobFactor()Returns the value of themobFactorrecord component.- Returns:
- the value of the
mobFactorrecord component
-