Class AbstractDuration
java.lang.Object
com.pixelmonmod.pixelmon.api.daycare.impl.duration.AbstractDuration
- All Implemented Interfaces:
- DayCareDuration
- Direct Known Subclasses:
- AdditiveDuration,- ConstantDuration,- MultiplicativeDuration,- NegativeDuration
Abstract implementation of a duration taking only the ID
- Since:
- 13/07/2022
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionabstract net.minecraft.network.chat.ComponentGet the display ComponentgetId()The unique identifier of the day care duration logicintGets the duration type's priority (higher priority = will be calculated first)Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.pixelmonmod.pixelmon.api.daycare.DayCareDurationgetMillisecondValue, read
- 
Field Details- 
id
 
- 
- 
Constructor Details- 
AbstractDuration
 
- 
- 
Method Details- 
getIdDescription copied from interface:DayCareDurationThe unique identifier of the day care duration logic- Specified by:
- getIdin interface- DayCareDuration
- Returns:
- The ID
 
- 
getPrioritypublic int getPriority()Description copied from interface:DayCareDurationGets the duration type's priority (higher priority = will be calculated first)- Specified by:
- getPriorityin interface- DayCareDuration
- Returns:
- The priority
 
- 
getDisplaypublic abstract net.minecraft.network.chat.Component getDisplay()Description copied from interface:DayCareDurationGet the display Component- Specified by:
- getDisplayin interface- DayCareDuration
- Returns:
- the Component
 
 
-