Class Patient
java.lang.Object
com.minecolonies.core.entity.ai.workers.util.Patient
Class representing a patient.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgetId()Get the citizen id of the patient.getState()Get the current state of the treatment.voidsetState(Patient.PatientState state) Progress the patient state.voidwrite(net.minecraft.nbt.CompoundTag compoundNBT) Write the Patient to nbt.
-
Constructor Details
-
Patient
public Patient(int id) Create a new patient file.- Parameters:
id- the id of the patient.
-
Patient
public Patient(net.minecraft.nbt.CompoundTag patientCompound) Load the Patient from nbt.- Parameters:
patientCompound- the nbt to load it from.
-
-
Method Details
-
getId
public int getId()Get the citizen id of the patient.- Returns:
- the int id.
-
getState
Get the current state of the treatment.- Returns:
- the enum state.
-
setState
Progress the patient state.- Parameters:
state- the state to set.
-
write
public void write(net.minecraft.nbt.CompoundTag compoundNBT) Write the Patient to nbt.- Parameters:
compoundNBT- the compound to write it to.
-