Class AbstractRequirement
java.lang.Object
com.pixelmonmod.pixelmon.api.daycare.impl.requirement.AbstractRequirement
- All Implemented Interfaces:
DayCareRequirement
- Direct Known Subclasses:
ItemStackRequirement
,OneTimeFemaleItemStackRequirement
,PokeDollarsRequirement
Abstract implementation of the
DayCareRequirement
- Since:
- 25/06/2022
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.network.chat.Component
getError()
Gets the error message for when the requirement isn't metGets the unique identifier of the breeding requirement type for use in datapacksvoid
setError
(net.minecraft.network.chat.Component error) Sets the error message displayed in the GUI to the playerMethods 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.DayCareRequirement
hasMetRequirement, read, read, takeFrom, write
-
Field Details
-
typeId
-
error
protected net.minecraft.network.chat.Component error
-
-
Constructor Details
-
AbstractRequirement
-
-
Method Details
-
getTypeId
Description copied from interface:DayCareRequirement
Gets the unique identifier of the breeding requirement type for use in datapacks- Specified by:
getTypeId
in interfaceDayCareRequirement
- Returns:
- The unique id
-
getError
public net.minecraft.network.chat.Component getError()Description copied from interface:DayCareRequirement
Gets the error message for when the requirement isn't met- Specified by:
getError
in interfaceDayCareRequirement
- Returns:
- The error message
-
setError
public void setError(net.minecraft.network.chat.Component error) Description copied from interface:DayCareRequirement
Sets the error message displayed in the GUI to the player- Specified by:
setError
in interfaceDayCareRequirement
- Parameters:
error
- The error
-