Java Code Examples for org.bukkit.entity.EntityType#CAVE_SPIDER
The following examples show how to use
org.bukkit.entity.EntityType#CAVE_SPIDER .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: SentinelVersionCompat.java From Sentinel with MIT License | 6 votes |
static EntityType[] v1_16_monsters() { return new EntityType[]{ // 1.8 minus PigZombie EntityType.GUARDIAN, EntityType.CREEPER, EntityType.SKELETON, EntityType.ZOMBIE, EntityType.MAGMA_CUBE, EntityType.SILVERFISH, EntityType.BAT, EntityType.BLAZE, EntityType.GHAST, EntityType.GIANT, EntityType.SLIME, EntityType.SPIDER, EntityType.CAVE_SPIDER, EntityType.ENDERMAN, EntityType.ENDERMITE, EntityType.WITHER, EntityType.ENDER_DRAGON, EntityType.WITCH, // 1.9 EntityType.SHULKER, // 1.11 EntityType.VEX, EntityType.HUSK, EntityType.ELDER_GUARDIAN, EntityType.EVOKER, EntityType.STRAY, EntityType.ZOMBIE_VILLAGER, EntityType.WITHER_SKELETON, EntityType.VINDICATOR, // 1.12 EntityType.ILLUSIONER, // 1.13 EntityType.DROWNED, EntityType.PHANTOM, // 1.14 EntityType.RAVAGER, EntityType.PILLAGER, // 1.15 EntityType.BEE, // 1.16 EntityType.HOGLIN, EntityType.PIGLIN, EntityType.ZOGLIN, EntityType.ZOMBIFIED_PIGLIN }; }
Example 2
Source File: CraftCaveSpider.java From Kettle with GNU General Public License v3.0 | 4 votes |
public EntityType getType() { return EntityType.CAVE_SPIDER; }
Example 3
Source File: SentinelVersionCompat.java From Sentinel with MIT License | 4 votes |
static EntityType[] v1_8_monsters() { return new EntityType[]{EntityType.GUARDIAN, EntityType.CREEPER, EntityType.SKELETON, EntityType.ZOMBIE, EntityType.MAGMA_CUBE, EntityType.valueOf("PIG_ZOMBIE"), EntityType.SILVERFISH, EntityType.BAT, EntityType.BLAZE, EntityType.GHAST, EntityType.GIANT, EntityType.SLIME, EntityType.SPIDER, EntityType.CAVE_SPIDER, EntityType.ENDERMAN, EntityType.ENDERMITE, EntityType.WITHER, EntityType.ENDER_DRAGON, EntityType.WITCH}; }
Example 4
Source File: EliteCaveSpider.java From EliteMobs with GNU General Public License v3.0 | 4 votes |
public EliteCaveSpider() { this.name = ConfigValues.translationConfig.getString(TranslationConfig.NAME_CAVE_SPIDER); this.entityType = EntityType.CAVE_SPIDER; this.defaultMaxHealth = 12; this.validDefensivePowers.addAll(super.getAllDefensivePowers()); this.validOffensivePowers.addAll(super.getAllOffensivePowers()); this.validMiscellaneousPowers.addAll(super.getAllMiscellaneousPowers()); this.isEnabled = ConfigValues.validMobsConfig.getBoolean(ValidMobsConfig.VALID_AGGRESSIVE_ELITEMOBS + getEntityType().toString()) && ConfigValues.validMobsConfig.getBoolean(ValidMobsConfig.ALLOW_AGGRESSIVE_ELITEMOBS); if (this.isEnabled) eliteMobData.add(this); }
Example 5
Source File: CraftCaveSpider.java From Thermos with GNU General Public License v3.0 | 4 votes |
public EntityType getType() { return EntityType.CAVE_SPIDER; }
Example 6
Source File: SpawnEggMeta.java From ShopChest with MIT License | 4 votes |
/** * @param plugin An instance of the {@link ShopChest} plugin * @param stack {@link ItemStack} (Spawn Egg) of which the Entity should be gotten * @return The {@link EntityType} the Spawn Egg will spawn or <b>null</b> if <i>nbtEntityID</i> is null */ public static EntityType getEntityTypeFromItemStack(ShopChest plugin, ItemStack stack) { if (Utils.getMajorVersion() == 8) { EntityType type = null; for (EntityType entityType : EntityType.values()) { if (entityType.getTypeId() == stack.getDurability()) { type = entityType; break; } } return type; } String nbtEntityID = getNBTEntityID(plugin, stack); if (nbtEntityID == null) return null; if (Utils.getMajorVersion() >= 11) { if (nbtEntityID.contains(":")) nbtEntityID = nbtEntityID.split(":")[1]; return EntityType.fromName(nbtEntityID); } switch (nbtEntityID) { case "PigZombie": return EntityType.valueOf("PIG_ZOMBIE"); case "CaveSpider": return EntityType.CAVE_SPIDER; case "LavaSlime": return EntityType.MAGMA_CUBE; case "MushroomCow": return EntityType.MUSHROOM_COW; case "EntityHorse": return EntityType.HORSE; case "PolarBear": return EntityType.POLAR_BEAR; case "Ozelot": return EntityType.OCELOT; default: return EntityType.valueOf(nbtEntityID.toUpperCase()); } }