public abstract class AbstractRequirement extends java.lang.Object implements DayCareRequirement
DayCareRequirement| Modifier and Type | Field and Description |
|---|---|
protected net.minecraft.util.text.ITextComponent |
error |
protected java.lang.String |
typeId |
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractRequirement(java.lang.String typeId) |
| Modifier and Type | Method and Description |
|---|---|
net.minecraft.util.text.ITextComponent |
getError()
Gets the error message for when the requirement isn't met
|
java.lang.String |
getTypeId()
Gets the unique identifier of the breeding requirement type for use in datapacks
|
void |
setError(net.minecraft.util.text.ITextComponent error)
Sets the error message displayed in the GUI to the player
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waithasMetRequirement, read, read, takeFrom, writeprotected final java.lang.String typeId
protected net.minecraft.util.text.ITextComponent error
public java.lang.String getTypeId()
DayCareRequirementgetTypeId in interface DayCareRequirementpublic net.minecraft.util.text.ITextComponent getError()
DayCareRequirementgetError in interface DayCareRequirementpublic void setError(net.minecraft.util.text.ITextComponent error)
DayCareRequirementsetError in interface DayCareRequirementerror - The error