public interface DayCareCondition
extends java.lang.Cloneable
Modifier and Type | Method and Description |
---|---|
DayCareCondition |
clone()
Creates a copy of the object
|
boolean |
completeRequirement(net.minecraft.entity.player.ServerPlayerEntity player,
DayCareBox box,
DayCareRequirement requirement)
Attempts to complete the requirement
|
java.util.List<DayCareDuration> |
getDurations()
Gets the durations to apply from this condition
|
java.util.Optional<DayCareRequirement> |
getNextRequirement()
Gets the next requirement, if one exists
|
java.util.List<DayCareRequirement> |
getRemainingRequirements()
Gets the remaining requirements
|
java.util.List<DayCareRequirement> |
getRequirements()
Gets all the requirements
|
boolean |
isComplete()
Checks if all requirements have been completed
|
boolean |
isConditionFor(Pokemon parentOne,
Pokemon parentTwo,
Pokemon child)
Determines if the condition is applicable to the two parents attempting to breed
|
void |
read(net.minecraft.nbt.CompoundNBT nbt)
Reads the condition from NBT
|
void |
read(com.google.gson.Gson gson,
com.google.gson.JsonElement json)
Reads the condition from JSON
|
void |
skipRequirement(DayCareRequirement requirement)
Skips the requirement without any completion steps (i.e.
|
void |
write(net.minecraft.nbt.CompoundNBT nbt)
Writes the condition to NBT
|
boolean isConditionFor(Pokemon parentOne, Pokemon parentTwo, Pokemon child)
parentOne
- The first parentparentTwo
- The second parentjava.util.List<DayCareDuration> getDurations()
java.util.List<DayCareRequirement> getRequirements()
java.util.Optional<DayCareRequirement> getNextRequirement()
boolean isComplete()
java.util.List<DayCareRequirement> getRemainingRequirements()
boolean completeRequirement(net.minecraft.entity.player.ServerPlayerEntity player, DayCareBox box, DayCareRequirement requirement)
player
- The playerbox
- The boxrequirement
- The requirementvoid skipRequirement(DayCareRequirement requirement)
requirement
- The requirementvoid read(com.google.gson.Gson gson, com.google.gson.JsonElement json)
json
- The JSON objectvoid write(net.minecraft.nbt.CompoundNBT nbt)
nbt
- The NBT to write tovoid read(net.minecraft.nbt.CompoundNBT nbt)
nbt
- The NBT to read fromDayCareCondition clone()