Interface IEntityListModule

All Known Implementing Classes:
EntityListModule

public interface IEntityListModule
Module for ignore/acceptance lists of entities.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addEntity(net.minecraft.resources.ResourceLocation item)
    Add an entity to the list.
    Get the unique id of this module.
    List<net.minecraft.resources.ResourceLocation>
    Get a specific entitylist.
    Get the string identifier of the list.
    boolean
    isEntityInList(net.minecraft.resources.ResourceLocation item)
    Check if the entity is an allowed item.
    void
    removeEntity(net.minecraft.resources.ResourceLocation item)
    Remove an entity from the list.
  • Method Details

    • addEntity

      void addEntity(net.minecraft.resources.ResourceLocation item)
      Add an entity to the list.
      Parameters:
      item - the entity to add.
    • isEntityInList

      boolean isEntityInList(net.minecraft.resources.ResourceLocation item)
      Check if the entity is an allowed item.
      Parameters:
      item - the entity to check.
      Returns:
      true if so.
    • removeEntity

      void removeEntity(net.minecraft.resources.ResourceLocation item)
      Remove an entity from the list.
      Parameters:
      item - the item to remove.
    • getList

      List<net.minecraft.resources.ResourceLocation> getList()
      Get a specific entitylist.
      Returns:
      a copy of the list at ID, or an empty list.
    • getListIdentifier

      String getListIdentifier()
      Get the string identifier of the list.
      Returns:
      the string.
    • getId

      String getId()
      Get the unique id of this module.
      Returns:
      the id.