Package net.minecraft.entity.ai
Record Class WardenAngerManager.SuspectComparator
java.lang.Object
java.lang.Record
net.minecraft.entity.ai.WardenAngerManager.SuspectComparator
- Record Components:
angerManagement-
- All Implemented Interfaces:
Comparator<Entity>
- Enclosing class:
WardenAngerManager
protected static record WardenAngerManager.SuspectComparator(WardenAngerManager angerManagement)
extends Record
implements Comparator<Entity>
- Mappings:
Namespace Name named net/minecraft/entity/ai/WardenAngerManager$SuspectComparatorintermediary net/minecraft/class_7254$class_7379official cma$anamed angerManagementintermediary comp_708official a
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final WardenAngerManagerThe field for theangerManagementrecord component. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theangerManagementrecord component.intfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Comparator
reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Field Details
-
angerManagement
The field for theangerManagementrecord component.
-
-
Constructor Details
-
SuspectComparator
-
-
Method Details
-
compare
- Specified by:
comparein interfaceComparator<Entity>- Mappings:
Namespace Name Mixin selector named compareLnet/minecraft/entity/ai/WardenAngerManager$SuspectComparator;compare(Lnet/minecraft/entity/Entity;Lnet/minecraft/entity/Entity;)Iintermediary method_43110Lnet/minecraft/class_7254$class_7379;method_43110(Lnet/minecraft/class_1297;Lnet/minecraft/class_1297;)Iofficial aLcma$a;a(Lbsr;Lbsr;)I
-
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 withObjects::equals(Object,Object).- Specified by:
equalsin interfaceComparator<Entity>- Specified by:
equalsin classRecord- Parameters:
object- the object with which to compare- Returns:
trueif this object is the same as theobjectargument;falseotherwise.
-
angerManagement
Returns the value of theangerManagementrecord component.- Returns:
- the value of the
angerManagementrecord component
-