Class GraveyardManagementModuleView
java.lang.Object
com.minecolonies.api.colony.buildings.modules.AbstractBuildingModuleView
com.minecolonies.core.colony.buildings.moduleviews.GraveyardManagementModuleView
- All Implemented Interfaces:
IBuildingModuleView
-
Field Summary
Fields inherited from class com.minecolonies.api.colony.buildings.modules.AbstractBuildingModuleView
buildingView, colonyView -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidClean the list of graves if a grave is missing from the world.voiddeserialize(@NotNull net.minecraft.network.RegistryFriendlyByteBuf buf) Deserialize the data on the client side.net.minecraft.network.chat.ComponentgetDesc()Get the lang string for the title.intCount the burial plots currently occupied by named graves.@NotNull List<net.minecraft.core.BlockPos> Getter of the graves list.net.minecraft.resources.ResourceLocationGet the resource location of the icon for the module view.Getter of the restingCitizen list.intGet the total number of burial plots provided by this graveyard's schematic.com.ldtteam.blockui.views.BOWindowGet the matching window for the module.Methods inherited from class com.minecolonies.api.colony.buildings.modules.AbstractBuildingModuleView
canBeHiredAs, getBuildingView, getColony, getProducer, setBuildingView, setColonyView, setProducerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.minecolonies.api.colony.buildings.modules.IBuildingModuleView
getIcon, isPageVisible
-
Constructor Details
-
GraveyardManagementModuleView
public GraveyardManagementModuleView()
-
-
Method Details
-
deserialize
public void deserialize(@NotNull @NotNull net.minecraft.network.RegistryFriendlyByteBuf buf) Description copied from interface:IBuildingModuleViewDeserialize the data on the client side.- Parameters:
buf- the buffer to read it from.
-
getWindow
public com.ldtteam.blockui.views.BOWindow getWindow()Description copied from interface:IBuildingModuleViewGet the matching window for the module.- Returns:
- the window.
-
getIconResourceLocation
public net.minecraft.resources.ResourceLocation getIconResourceLocation()Description copied from interface:IBuildingModuleViewGet the resource location of the icon for the module view.- Returns:
- the resource location.
-
getDesc
public net.minecraft.network.chat.Component getDesc()Description copied from interface:IBuildingModuleViewGet the lang string for the title.- Returns:
- the lang string.
-
getGraves
Getter of the graves list.- Returns:
- an unmodifiable List.
-
cleanGraves
public void cleanGraves()Clean the list of graves if a grave is missing from the world. -
getRestingCitizen
Getter of the restingCitizen list.- Returns:
- an unmodifiable List.
-
getTotalGravePlotCount
public int getTotalGravePlotCount()Get the total number of burial plots provided by this graveyard's schematic.- Returns:
- the total number of burial plots.
-
getFilledGravePlotCount
public int getFilledGravePlotCount()Count the burial plots currently occupied by named graves.- Returns:
- the number of occupied burial plots.
-