Package com.minecolonies.core.colony
Class VisitorDataView
java.lang.Object
com.minecolonies.core.colony.CitizenDataView
com.minecolonies.core.colony.VisitorDataView
- All Implemented Interfaces:
ICitizen,ICitizenDataView,IVisitorViewData
View data for visitors
-
Field Summary
Fields inherited from class com.minecolonies.core.colony.CitizenDataView
colonyId, entityId, female, isChild, name, paused, textureUUID -
Constructor Summary
ConstructorsConstructorDescriptionVisitorDataView(int id, IColonyView colony) Create a CitizenData given an ID. -
Method Summary
Modifier and TypeMethodDescriptionvoiddeserialize(@NotNull net.minecraft.network.RegistryFriendlyByteBuf buf) Deserialize the attributes and variables from transition.net.minecraft.resources.ResourceLocationGet the custom texture of the citizen.net.minecraft.world.item.ItemStackGets the visitors recruitment costMethods inherited from class com.minecolonies.core.colony.CitizenDataView
equals, getChildren, getCitizenSkillHandler, getColony, getColonyId, getCustomTextureUUID, getDisplayArmor, getEntityId, getHappiness, getHappinessHandler, getHealth, getHomeBuilding, getId, getInventory, getJob, getJobComponent, getJobView, getMaxHealth, getName, getOrderedInteractions, getParents, getPartner, getPosition, getSaturation, getSiblings, getSpecificInteraction, getStatusIcon, getStatusPosition, getVisibleStatus, getWorkBuilding, hasBlockingInteractions, hashCode, hasPendingInteractions, hasVisibleStatus, isChild, isFemale, isPaused, isSick, setHomeBuilding, setJobView, setPaused, setWorkBuildingMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.minecolonies.api.colony.ICitizen
getId, getInventory, getName, getSaturation, isChild, isFemale, isPaused, setPausedMethods inherited from interface com.minecolonies.api.colony.ICitizenDataView
getChildren, getCitizenSkillHandler, getColony, getColonyId, getCustomTextureUUID, getDisplayArmor, getEntityId, getHappiness, getHappinessHandler, getHealth, getHomeBuilding, getJob, getJobComponent, getJobView, getMaxHealth, getOrderedInteractions, getParents, getPartner, getPosition, getSiblings, getSpecificInteraction, getStatusIcon, getStatusPosition, getVisibleStatus, getWorkBuilding, hasBlockingInteractions, hasPendingInteractions, hasVisibleStatus, isSick, setHomeBuilding, setJobView, setWorkBuilding
-
Constructor Details
-
VisitorDataView
Create a CitizenData given an ID. Used as a super-constructor or during loading.- Parameters:
id- ID of the Citizen.colony- Colony the Citizen belongs to.
-
-
Method Details
-
deserialize
public void deserialize(@NotNull @NotNull net.minecraft.network.RegistryFriendlyByteBuf buf) Description copied from interface:ICitizenDataViewDeserialize the attributes and variables from transition.- Specified by:
deserializein interfaceICitizenDataView- Overrides:
deserializein classCitizenDataView- Parameters:
buf- Byte buffer to deserialize.
-
getRecruitCost
public net.minecraft.world.item.ItemStack getRecruitCost()Description copied from interface:IVisitorViewDataGets the visitors recruitment cost- Specified by:
getRecruitCostin interfaceIVisitorViewData- Returns:
- stack to pay
-
getCustomTexture
public net.minecraft.resources.ResourceLocation getCustomTexture()Description copied from interface:ICitizenDataViewGet the custom texture of the citizen.- Specified by:
getCustomTexturein interfaceICitizenDataView- Overrides:
getCustomTexturein classCitizenDataView- Returns:
- the res location.
-