Package net.minecraft.entity.player
Record Class ItemCooldownManager.Entry
java.lang.Object
java.lang.Record
net.minecraft.entity.player.ItemCooldownManager.Entry
- Record Components:
startTick-endTick-
- Enclosing class:
ItemCooldownManager
- Mappings:
Namespace Name named net/minecraft/entity/player/ItemCooldownManager$Entryintermediary net/minecraft/class_1796$class_1797official dah$anamed startTickintermediary comp_3083official anamed endTickintermediary comp_3084official b
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionEntry(int startTick, int endTick) Creates an instance of aEntryrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintendTick()Returns the value of theendTickrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intReturns the value of thestartTickrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
Constructor Details
-
Method Details
-
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 '=='. -
startTick
public int startTick()Returns the value of thestartTickrecord component.- Returns:
- the value of the
startTickrecord component
-
endTick
public int endTick()Returns the value of theendTickrecord component.- Returns:
- the value of the
endTickrecord component
-