Class EntityHelper

java.lang.Object
de.redstoneworld.redutilities.entity.EntityHelper

public class EntityHelper extends Object
  • Constructor Details

    • EntityHelper

      public EntityHelper()
  • Method Details

    • getEntityTypes

      public static Set<org.bukkit.entity.EntityType> getEntityTypes(Set<String> inputSet)
      This method returns a list of EntityTypes based on the Set of input strings.
      Parameters:
      inputSet - (Set of Strings) the input String
      Returns:
      (Set of EntityTypes) the resulted EntityTypes
    • getEntityTypes

      public static Set<org.bukkit.entity.EntityType> getEntityTypes(String input)
      This method returns a list of Entity-Types based on the input string. Various formats of specifications are supported here:
      • Entity-Type Tag starting with "#" or "tag=" - see Minecraft-Wiki Article for the Vanilla Entity-Type Tags and PaperMC Java-Doc for the Bukkit implementation
      • Regex via "r="
      • clean ENTITY-TYPE names with wildcards via "*"
      • clean ENTITY-TYPE names
      Note: Currently, the expanding EntitySetTags from PaperMC are not supported here.

      Basic-Design by Phoenix616
      Parameters:
      input - (String) the input String
      Returns:
      (Set of EntityTypes) the resulted EntityTypes