Class JobDataManager
java.lang.Object
com.minecolonies.core.colony.jobs.registry.JobDataManager
- All Implemented Interfaces:
IJobDataManager
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@Nullable IJob<?> createFrom(ICitizenData citizen, @NotNull net.minecraft.nbt.CompoundTag compound, net.minecraft.core.HolderLookup.Provider provider) Create a Job from saved CompoundTag data.createViewFrom(IColonyView colony, ICitizenDataView citizenDataView, net.minecraft.network.RegistryFriendlyByteBuf networkBuffer) Create a job view from the saved network buffer.
-
Constructor Details
-
JobDataManager
public JobDataManager()
-
-
Method Details
-
createFrom
@Nullable public @Nullable IJob<?> createFrom(ICitizenData citizen, @NotNull @NotNull net.minecraft.nbt.CompoundTag compound, @NotNull net.minecraft.core.HolderLookup.Provider provider) Description copied from interface:IJobDataManagerCreate a Job from saved CompoundTag data.- Specified by:
createFromin interfaceIJobDataManager- Parameters:
citizen- The citizen that owns the Job.compound- The CompoundTag containing the saved Job data.- Returns:
- New Job created from the data, or null.
-
createViewFrom
public IJobView createViewFrom(IColonyView colony, ICitizenDataView citizenDataView, net.minecraft.network.RegistryFriendlyByteBuf networkBuffer) Description copied from interface:IJobDataManagerCreate a job view from the saved network buffer.- Specified by:
createViewFromin interfaceIJobDataManager- Parameters:
colony- the colony.citizenDataView- the the citizen data view..networkBuffer- the buffer/- Returns:
- the new job view.
-