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
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.network.chat.ComponentgetError()Gets the error message for when the requirement isn't metGets the unique identifier of the breeding requirement type for use in datapacksvoidsetError(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, waitMethods inherited from interface com.pixelmonmod.pixelmon.api.daycare.DayCareRequirement
getIcon, 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:DayCareRequirementGets the unique identifier of the breeding requirement type for use in datapacks- Specified by:
getTypeIdin interfaceDayCareRequirement- Returns:
- The unique id
-
getError
public net.minecraft.network.chat.Component getError()Description copied from interface:DayCareRequirementGets the error message for when the requirement isn't met- Specified by:
getErrorin interfaceDayCareRequirement- Returns:
- The error message
-
setError
public void setError(net.minecraft.network.chat.Component error) Description copied from interface:DayCareRequirementSets the error message displayed in the GUI to the player- Specified by:
setErrorin interfaceDayCareRequirement- Parameters:
error- The error
-