Class GuardType
java.lang.Object
com.minecolonies.api.colony.guardtype.GuardType
Guard type class.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGetter for the button translation key.Getter for the job producer.Getter for the job translation key.Getter for the primary key.Getter for the secondary skill.Getter for the worker sound name.booleanisInstance(IJob<?> job) Check if the job is of this type.
-
Constructor Details
-
GuardType
public GuardType(Supplier<JobEntry> jobEntry, String jobTranslationKey, String buttonTranslationKey, Skill primarySkill, Skill secondarySkill, String workerSoundName, Class<IJob<?>> clazz, net.minecraft.resources.ResourceLocation registryName) Constructor to create the type.- Parameters:
jobEntry- the job entry..jobTranslationKey- job translation key.buttonTranslationKey- button translation ky.primarySkill- primary skill.secondarySkill- secondary skill.workerSoundName- worker sound name.clazz- the class of the job.
-
-
Method Details
-
getJobEntry
Getter for the job producer.- Returns:
- the producer.
-
getJobTranslationKey
Getter for the job translation key.- Returns:
- the key.
-
getButtonTranslationKey
Getter for the button translation key.- Returns:
- the key.
-
getPrimarySkill
Getter for the primary key.- Returns:
- the skill.
-
getSecondarySkill
Getter for the secondary skill.- Returns:
- the skill.
-
getWorkerSoundName
Getter for the worker sound name.- Returns:
- the sound name.
-
isInstance
Check if the job is of this type.- Parameters:
job- the job to check.- Returns:
- true if so.
-