Class DefaultJobView
java.lang.Object
com.minecolonies.core.colony.jobs.views.DefaultJobView
- All Implemented Interfaces:
IJobView
- Direct Known Subclasses:
CrafterJobView,DmanJobView
Basic job information on the client side, valid for all job types.
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultJobView(IColonyView iColonyView, ICitizenDataView iCitizenDataView) Instantiate the default job view. -
Method Summary
Modifier and TypeMethodDescriptionvoiddeserialize(net.minecraft.network.FriendlyByteBuf buffer) Deserialize the job from the buffer.Get a set of async requests connected to this job.protected IColonyViewGet the colony view this job belongs to.getEntry()Getter for the job entry of the job.getName()Return a Localization textContent for the Job.voidSet the job entry of the view.
-
Constructor Details
-
DefaultJobView
Instantiate the default job view.- Parameters:
iColonyView- the colony it belongs to.iCitizenDataView- the citizen it belongs to.
-
-
Method Details
-
deserialize
public void deserialize(net.minecraft.network.FriendlyByteBuf buffer) Description copied from interface:IJobViewDeserialize the job from the buffer.- Specified by:
deserializein interfaceIJobView- Parameters:
buffer- the buffer to read it from.
-
getName
Description copied from interface:IJobViewReturn a Localization textContent for the Job. -
getEntry
Description copied from interface:IJobViewGetter for the job entry of the job. -
getColonyView
Get the colony view this job belongs to.- Returns:
- the view.
-
getAsyncRequests
Get a set of async requests connected to this job.- Specified by:
getAsyncRequestsin interfaceIJobView- Returns:
- a set of ITokens.
-
setEntry
Description copied from interface:IJobViewSet the job entry of the view.
-