Interface IJobDataManager

All Known Implementing Classes:
JobDataManager

public interface IJobDataManager
  • Method Summary

    Modifier and Type
    Method
    Description
    @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.
     
  • Method Details

    • getInstance

      static IJobDataManager getInstance()
    • createFrom

      @Nullable @Nullable IJob<?> createFrom(ICitizenData citizen, @NotNull @NotNull net.minecraft.nbt.CompoundTag compound, @NotNull net.minecraft.core.HolderLookup.Provider provider)
      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.RegistryFriendlyByteBuf 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.