Package com.minecolonies.api.colony
Class GraveData
java.lang.Object
com.minecolonies.api.colony.GraveData
- All Implemented Interfaces:
IGraveData
Container for all the grave data
-
Constructor Summary
Constructors -
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 compound) 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
-
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:
getCitizenDataNBTin interfaceIGraveData
-
setCitizenDataNBT
public void setCitizenDataNBT(@Nullable @Nullable net.minecraft.nbt.CompoundTag citizenDataNBT) Set data NBT of the citizen .- Specified by:
setCitizenDataNBTin interfaceIGraveData
-
getCitizenName
Get the name of the citizen.- Specified by:
getCitizenNamein interfaceIGraveData
-
setCitizenName
Set the name of the citizen.- Specified by:
setCitizenNamein interfaceIGraveData
-
getCitizenJobName
Get the name of the job of the citizen- Specified by:
getCitizenJobNamein interfaceIGraveData
-
setCitizenJobName
Set the name of the job of the citizen- Specified by:
setCitizenJobNamein interfaceIGraveData
-
read
public void read(net.minecraft.nbt.CompoundTag compound) Description copied from interface:IGraveDataRead this CitizenData from the compoundNBT- Specified by:
readin interfaceIGraveData
-
write
public net.minecraft.nbt.CompoundTag write()Description copied from interface:IGraveDataWrite this CitizenData to a coumpoundNBT- Specified by:
writein interfaceIGraveData- Returns:
-