Interface IJobDataManager

All Known Implementing Classes:
JobDataManager

public interface IJobDataManager
  • Method Details

    • getInstance

      static IJobDataManager getInstance()
    • createFrom

      @Nullable @Nullable IJob<?> createFrom(ICitizenData citizen, @NotNull @NotNull net.minecraft.nbt.CompoundTag compound)
      Create a Job from saved CompoundTag data.
      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

      IJobView createViewFrom(IColonyView colony, ICitizenDataView citizenDataView, net.minecraft.network.FriendlyByteBuf networkBuffer)
      Create a job view from the saved network buffer.
      Parameters:
      colony - the colony.
      citizenDataView - the the citizen data view..
      networkBuffer - the buffer/
      Returns:
      the new job view.