Class EnchanterStationsModuleView
java.lang.Object
com.minecolonies.api.colony.buildings.modules.AbstractBuildingModuleView
com.minecolonies.core.colony.buildings.moduleviews.EnchanterStationsModuleView
- 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 TypeMethodDescriptionvoidaddWorker(net.minecraft.core.BlockPos blockPos) Add a new worker to gather xp from.voiddeserialize(@NotNull net.minecraft.network.FriendlyByteBuf buf) Deserialize the data on the client side.List<net.minecraft.core.BlockPos>Getter for the list.net.minecraft.network.chat.ComponentgetDesc()Get the lang string for the title.net.minecraft.resources.ResourceLocationGet the resource location of the icon for the module view.com.ldtteam.blockui.views.BOWindowGet the matching window for the module.voidremoveWorker(net.minecraft.core.BlockPos blockPos) Remove a worker to stop gathering from.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
-
EnchanterStationsModuleView
public EnchanterStationsModuleView()
-
-
Method Details
-
deserialize
public void deserialize(@NotNull @NotNull net.minecraft.network.FriendlyByteBuf buf) Description copied from interface:IBuildingModuleViewDeserialize the data on the client side.- Parameters:
buf- the buffer to read it from.
-
getBuildingsToGatherFrom
Getter for the list.- Returns:
- the list.
-
addWorker
public void addWorker(net.minecraft.core.BlockPos blockPos) Add a new worker to gather xp from.- Parameters:
blockPos- the pos of the building.
-
removeWorker
public void removeWorker(net.minecraft.core.BlockPos blockPos) Remove a worker to stop gathering from.- Parameters:
blockPos- the pos of that worker.
-
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.
-