Class EntityHelper
java.lang.Object
de.redstoneworld.redutilities.entity.EntityHelper
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Set<org.bukkit.entity.EntityType> getEntityTypes(String input) This method returns a list of Entity-Types based on the input string.static Set<org.bukkit.entity.EntityType> getEntityTypes(Set<String> inputSet) This method returns a list of EntityTypes based on the Set of input strings.
-
Constructor Details
-
EntityHelper
public EntityHelper()
-
-
Method Details
-
getEntityTypes
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
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
Basic-Design by Phoenix616- Parameters:
input- (String) the input String- Returns:
- (Set of EntityTypes) the resulted EntityTypes
-