Interface IEntityListModuleView

All Superinterfaces:
IBuildingModuleView
All Known Implementing Classes:
EntityListModuleView

public interface IEntityListModuleView extends IBuildingModuleView
Client side version of the abstract class for all buildings which require a filterable list of allowed items.
  • 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