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