Class XEntity


  • public final class XEntity
    extends Object
    XEntity - YAML Entity Serializer
    Supports 1.9+ Using ConfigurationSection Example:
         ConfigurationSection section = plugin.getConfig().getConfigurationSection("champions.king");
         Entity entity = XEntity.spawn(loc, section);
     
    Entity: https://hub.spigotmc.org/javadocs/spigot/org/bukkit/entity/Entity.html
    Version:
    4.0.0
    Author:
    Crypto Morin
    See Also:
    XMaterial, XItemStack, XPotion
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static Set<org.bukkit.entity.EntityType> UNDEAD
      A list of entity types that are considerd undead.
    • Field Detail

      • UNDEAD

        public static final Set<org.bukkit.entity.EntityType> UNDEAD
        A list of entity types that are considerd undead.
        Since:
        2.0.0
    • Method Detail

      • isUndead

        public static boolean isUndead​(@Nullable
                                       org.bukkit.entity.EntityType type)
        Checks if an entity is an undead.
        Parameters:
        type - the entity type.
        Returns:
        true if the entity is an undead.
        Since:
        2.0.0
      • spawn

        @Nullable
        public static org.bukkit.entity.Entity spawn​(@Nonnull
                                                     org.bukkit.Location location,
                                                     @Nonnull
                                                     org.bukkit.configuration.ConfigurationSection config)
      • edit

        @Nonnull
        public static org.bukkit.entity.Entity edit​(@Nonnull
                                                    org.bukkit.entity.Entity entity,
                                                    @Nonnull
                                                    org.bukkit.configuration.ConfigurationSection config)