Class JobDataManager

java.lang.Object
com.minecolonies.core.colony.jobs.registry.JobDataManager
All Implemented Interfaces:
IJobDataManager

public final class JobDataManager extends Object implements IJobDataManager
  • Constructor Details

    • JobDataManager

      public JobDataManager()
  • Method Details

    • createFrom

      @Nullable public @Nullable IJob<?> createFrom(ICitizenData citizen, @NotNull @NotNull net.minecraft.nbt.CompoundTag compound)
      Description copied from interface: IJobDataManager
      Create a Job from saved CompoundTag data.
      Specified by:
      createFrom in interface IJobDataManager
      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.FriendlyByteBuf networkBuffer)
      Description copied from interface: IJobDataManager
      Create a job view from the saved network buffer.
      Specified by:
      createViewFrom in interface IJobDataManager
      Parameters:
      colony - the colony.
      citizenDataView - the the citizen data view..
      networkBuffer - the buffer/
      Returns:
      the new job view.