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$Entry- intermediary - net/minecraft/class_1796$class_1797- official - cwn$a- named - startTick- intermediary - comp_3083- official - a- named - endTick- intermediary - comp_3084- official - b
- 
Field SummaryFields
- 
Constructor SummaryConstructorsConstructorDescriptionEntry(int startTick, int endTick) Creates an instance of aEntryrecord class.
- 
Method SummaryModifier 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- 
toStringReturns 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.
- 
hashCodepublic 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.
- 
equalsIndicates 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 '=='.
- 
startTickpublic int startTick()Returns the value of thestartTickrecord component.- Returns:
- the value of the startTickrecord component
 
- 
endTickpublic int endTick()Returns the value of theendTickrecord component.- Returns:
- the value of the endTickrecord component
 
 
-