Interface IEntityListModuleView
- All Superinterfaces:
IBuildingModuleView
- All Known Implementing Classes:
EntityListModuleView
Client side version of the abstract class for all buildings which require a filterable list of allowed items.
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddEntity(net.minecraft.resources.ResourceLocation entity) Add entity to the view and notify the server side.voidClear the list of itemsgetId()Get the unique id of this group (used to sync with server side).intgetSize()Get the size of allowed items.booleanisAllowedEntity(net.minecraft.resources.ResourceLocation entity) Check if an entity is in the list of allowed entities.booleanCheck if the list is enabling or disabling.voidremoveEntity(net.minecraft.resources.ResourceLocation entity) Remove an entity from the view and notify the server side.Methods inherited from interface com.minecolonies.api.colony.buildings.modules.IBuildingModuleView
deserialize, getBuildingView, getColony, getDesc, getIcon, getIconResourceLocation, getProducer, getWindow, isPageVisible, setBuildingView, setColonyView, setProducer
-
Method Details
-
addEntity
void addEntity(net.minecraft.resources.ResourceLocation entity) Add entity to the view and notify the server side.- Parameters:
entity- the entity to add.
-
isAllowedEntity
boolean isAllowedEntity(net.minecraft.resources.ResourceLocation entity) Check if an entity is in the list of allowed entities.- Parameters:
entity- the entity to check.- Returns:
- true if so.
-
getSize
int getSize()Get the size of allowed items.- Returns:
- the size.
-
removeEntity
void removeEntity(net.minecraft.resources.ResourceLocation entity) Remove an entity from the view and notify the server side.- Parameters:
entity- the entity to remove.
-
getId
String getId()Get the unique id of this group (used to sync with server side).- Returns:
- the id.
-
isInverted
boolean isInverted()Check if the list is enabling or disabling.- Returns:
- true if enabling.
-
clearEntities
void clearEntities()Clear the list of items
-