java.lang.Object
com.minecolonies.core.entity.ai.workers.util.Patient

public class Patient extends Object
Class representing a patient.
  • 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

      public Patient.PatientState getState()
      Get the current state of the treatment.
      Returns:
      the enum state.
    • setState

      public void setState(Patient.PatientState state)
      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.