Package com.minecolonies.api.colony
Interface IGraveData
- All Known Implementing Classes:
GraveData
public interface IGraveData
Data to store in a citizen grave
-
Method Summary
Modifier and TypeMethodDescription@Nullable net.minecraft.nbt.CompoundTagget the data NBT of the citizen .@Nullable StringGet the name of the job of the citizen@Nullable StringGet the name of the citizen.voidread(net.minecraft.nbt.CompoundTag compoundNBT) Read this CitizenData from the compoundNBTvoidsetCitizenDataNBT(@Nullable net.minecraft.nbt.CompoundTag citizenDataNBT) Set data NBT of the citizen .voidsetCitizenJobName(@Nullable String citizenJobName) Set the name of the job of the citizenvoidsetCitizenName(@Nullable String citizenName) Set the name of the citizen.net.minecraft.nbt.CompoundTagwrite()Write this CitizenData to a coumpoundNBT
-
Method Details
-
getCitizenDataNBT
@Nullable @Nullable net.minecraft.nbt.CompoundTag getCitizenDataNBT()get the data NBT of the citizen . -
setCitizenDataNBT
void setCitizenDataNBT(@Nullable @Nullable net.minecraft.nbt.CompoundTag citizenDataNBT) Set data NBT of the citizen . -
getCitizenName
Get the name of the citizen. -
setCitizenName
Set the name of the citizen. -
getCitizenJobName
Get the name of the job of the citizen -
setCitizenJobName
Set the name of the job of the citizen -
read
void read(net.minecraft.nbt.CompoundTag compoundNBT) Read this CitizenData from the compoundNBT- Parameters:
compoundNBT-
-
write
net.minecraft.nbt.CompoundTag write()Write this CitizenData to a coumpoundNBT- Returns:
-