Package com.minecolonies.api.colony.jobs
Interface IJobView
- All Known Implementing Classes:
CrafterJobView,DefaultJobView,DmanJobView
public interface IJobView
-
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.getEntry()Getter for the job entry of the job.getName()Return a Localization textContent for the Job.voidSet the job entry of the view.
-
Method Details
-
getName
String getName()Return a Localization textContent for the Job.- Returns:
- localization textContent String.
-
getAsyncRequests
Get a set of async requests connected to this job.- Returns:
- a set of ITokens.
-
deserialize
void deserialize(net.minecraft.network.FriendlyByteBuf buffer) Deserialize the job from the buffer.- Parameters:
buffer- the buffer to read it from.
-
getEntry
JobEntry getEntry()Getter for the job entry of the job.- Returns:
- the entry.
-
setEntry
Set the job entry of the view.- Parameters:
jobEntry- the entry to set.
-