Class GraveData

java.lang.Object
com.minecolonies.api.colony.GraveData
All Implemented Interfaces:
IGraveData

public class GraveData extends Object implements IGraveData
Container for all the grave data
  • Constructor Details

    • GraveData

      public GraveData()
  • Method Details

    • getCitizenDataNBT

      @Nullable public @Nullable net.minecraft.nbt.CompoundTag getCitizenDataNBT()
      get the data NBT of the citizen .
      Specified by:
      getCitizenDataNBT in interface IGraveData
    • setCitizenDataNBT

      public void setCitizenDataNBT(@Nullable @Nullable net.minecraft.nbt.CompoundTag citizenDataNBT)
      Set data NBT of the citizen .
      Specified by:
      setCitizenDataNBT in interface IGraveData
    • getCitizenName

      @Nullable public @Nullable String getCitizenName()
      Get the name of the citizen.
      Specified by:
      getCitizenName in interface IGraveData
    • setCitizenName

      public void setCitizenName(@Nullable @Nullable String citizenName)
      Set the name of the citizen.
      Specified by:
      setCitizenName in interface IGraveData
    • getCitizenJobName

      @Nullable public @Nullable String getCitizenJobName()
      Get the name of the job of the citizen
      Specified by:
      getCitizenJobName in interface IGraveData
    • setCitizenJobName

      public void setCitizenJobName(@Nullable @Nullable String citizenJobName)
      Set the name of the job of the citizen
      Specified by:
      setCitizenJobName in interface IGraveData
    • read

      public void read(net.minecraft.nbt.CompoundTag compound)
      Description copied from interface: IGraveData
      Read this CitizenData from the compoundNBT
      Specified by:
      read in interface IGraveData
      Parameters:
      compound -
    • write

      public net.minecraft.nbt.CompoundTag write()
      Description copied from interface: IGraveData
      Write this CitizenData to a coumpoundNBT
      Specified by:
      write in interface IGraveData
      Returns: