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 Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract net.minecraft.network.chat.Component
Get the display ComponentgetId()
The unique identifier of the day care duration logicint
Gets the duration type's priority (higher priority = will be calculated first)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.pixelmonmod.pixelmon.api.daycare.DayCareDuration
getMillisecondValue, read
-
Field Details
-
id
-
-
Constructor Details
-
AbstractDuration
-
-
Method Details
-
getId
Description copied from interface:DayCareDuration
The unique identifier of the day care duration logic- Specified by:
getId
in interfaceDayCareDuration
- Returns:
- The ID
-
getPriority
public int getPriority()Description copied from interface:DayCareDuration
Gets the duration type's priority (higher priority = will be calculated first)- Specified by:
getPriority
in interfaceDayCareDuration
- Returns:
- The priority
-
getDisplay
public abstract net.minecraft.network.chat.Component getDisplay()Description copied from interface:DayCareDuration
Get the display Component- Specified by:
getDisplay
in interfaceDayCareDuration
- Returns:
- the Component
-