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, wait
hasMetRequirement, read, read, takeFrom, write
protected final java.lang.String typeId
protected net.minecraft.util.text.ITextComponent error
public java.lang.String getTypeId()
DayCareRequirement
getTypeId
in interface DayCareRequirement
public net.minecraft.util.text.ITextComponent getError()
DayCareRequirement
getError
in interface DayCareRequirement
public void setError(net.minecraft.util.text.ITextComponent error)
DayCareRequirement
setError
in interface DayCareRequirement
error
- The error