net.minecraft.entity.monster.EntityCaveSpider Java Examples
The following examples show how to use
net.minecraft.entity.monster.EntityCaveSpider.
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: MoCreatures.java From mocreaturesdev with GNU General Public License v3.0 | 6 votes |
public static void ClearVanillaMobSpawns() { for (int i = 0; i < BiomeGenBase.biomeList.length; i++) { if (BiomeGenBase.biomeList[i] != null) { EntityRegistry.removeSpawn(EntityCreeper.class, EnumCreatureType.monster, BiomeGenBase.biomeList[i]); EntityRegistry.removeSpawn(EntitySkeleton.class, EnumCreatureType.monster, BiomeGenBase.biomeList[i]); EntityRegistry.removeSpawn(EntityZombie.class, EnumCreatureType.monster, BiomeGenBase.biomeList[i]); EntityRegistry.removeSpawn(EntitySpider.class, EnumCreatureType.monster, BiomeGenBase.biomeList[i]); EntityRegistry.removeSpawn(EntityEnderman.class, EnumCreatureType.monster, BiomeGenBase.biomeList[i]); EntityRegistry.removeSpawn(EntityCaveSpider.class, EnumCreatureType.monster, BiomeGenBase.biomeList[i]); EntityRegistry.removeSpawn(EntitySlime.class, EnumCreatureType.monster, BiomeGenBase.biomeList[i]); EntityRegistry.removeSpawn(EntityGhast.class, EnumCreatureType.monster, BiomeGenBase.biomeList[i]); EntityRegistry.removeSpawn(EntityPigZombie.class, EnumCreatureType.monster, BiomeGenBase.biomeList[i]); EntityRegistry.removeSpawn(EntityMagmaCube.class, EnumCreatureType.monster, BiomeGenBase.biomeList[i]); EntityRegistry.removeSpawn(EntityOcelot.class, EnumCreatureType.monster, BiomeGenBase.biomeList[i]); } } }
Example #2
Source File: HackableHandler.java From PneumaticCraft with GNU General Public License v3.0 | 6 votes |
public static void addDefaultEntries(){ PneumaticRegistry.getInstance().addHackable(Blocks.tnt, HackableTNT.class); PneumaticRegistry.getInstance().addHackable(Blocks.mob_spawner, HackableMobSpawner.class); PneumaticRegistry.getInstance().addHackable(Blocks.lever, HackableLever.class); PneumaticRegistry.getInstance().addHackable(Blocks.stone_button, HackableButton.class); PneumaticRegistry.getInstance().addHackable(Blocks.wooden_button, HackableButton.class); PneumaticRegistry.getInstance().addHackable(Blocks.wooden_door, HackableDoor.class); PneumaticRegistry.getInstance().addHackable(Blocks.tripwire_hook, HackableTripwire.class); PneumaticRegistry.getInstance().addHackable(Blocks.dispenser, HackableDispenser.class); PneumaticRegistry.getInstance().addHackable(Blocks.dropper, HackableDispenser.class); PneumaticRegistry.getInstance().addHackable(Blockss.securityStation, HackableSecurityStation.class); PneumaticRegistry.getInstance().addHackable(Blocks.monster_egg, HackableTripwire.class); PneumaticRegistry.getInstance().addHackable(Blocks.noteblock, HackableNoteblock.class); PneumaticRegistry.getInstance().addHackable(Blocks.jukebox, HackableJukebox.class); PneumaticRegistry.getInstance().addHackable(EntityCreeper.class, HackableCreeper.class); PneumaticRegistry.getInstance().addHackable(EntityTameable.class, HackableTameable.class); PneumaticRegistry.getInstance().addHackable(EntityCow.class, HackableCow.class); PneumaticRegistry.getInstance().addHackable(EntityCaveSpider.class, HackableCaveSpider.class); PneumaticRegistry.getInstance().addHackable(EntityBlaze.class, HackableBlaze.class); PneumaticRegistry.getInstance().addHackable(EntityGhast.class, HackableGhast.class); PneumaticRegistry.getInstance().addHackable(EntityWitch.class, HackableWitch.class); PneumaticRegistry.getInstance().addHackable(EntityLiving.class, HackableLivingDisarm.class); PneumaticRegistry.getInstance().addHackable(EntityEnderman.class, HackableEnderman.class); PneumaticRegistry.getInstance().addHackable(EntityBat.class, HackableBat.class); }
Example #3
Source File: CraftCaveSpider.java From Kettle with GNU General Public License v3.0 | 4 votes |
public CraftCaveSpider(CraftServer server, EntityCaveSpider entity) { super(server, entity); }
Example #4
Source File: CraftCaveSpider.java From Kettle with GNU General Public License v3.0 | 4 votes |
@Override public EntityCaveSpider getHandle() { return (EntityCaveSpider) entity; }
Example #5
Source File: BlockFluidWitchwater.java From ExNihiloAdscensio with MIT License | 4 votes |
@Override public void onEntityCollidedWithBlock(World world, BlockPos pos, IBlockState state, Entity entity) { if (world.isRemote) return; if (entity.isDead) return; if (entity instanceof EntitySkeleton) { EntitySkeleton skeleton = (EntitySkeleton) entity; if (skeleton.getSkeletonType() == SkeletonType.NORMAL) { skeleton.setSkeletonType(SkeletonType.WITHER); skeleton.setHealth(skeleton.getMaxHealth()); return; } } if (entity instanceof EntityCreeper) { EntityCreeper creeper = (EntityCreeper) entity; if (!creeper.getPowered()) { creeper.onStruckByLightning(null); creeper.setHealth(creeper.getMaxHealth()); return; } } if (entity instanceof EntitySpider && !(entity instanceof EntityCaveSpider)) { EntitySpider spider = (EntitySpider) entity; spider.setDead(); EntityCaveSpider caveSpider = new EntityCaveSpider(world); caveSpider.setLocationAndAngles(spider.posX, spider.posY, spider.posZ, spider.rotationYaw, spider.rotationPitch); caveSpider.renderYawOffset = spider.renderYawOffset; caveSpider.setHealth(caveSpider.getMaxHealth()); world.spawnEntity(caveSpider); return; } if (entity instanceof EntitySquid) { EntitySquid squid = (EntitySquid) entity; squid.setDead(); EntityGhast ghast = new EntityGhast(world); ghast.setLocationAndAngles(squid.posX, squid.posY, squid.posZ, squid.rotationYaw, squid.rotationPitch); ghast.renderYawOffset = squid.renderYawOffset; ghast.setHealth(ghast.getMaxHealth()); world.spawnEntity(ghast); return; } if (entity instanceof EntityAnimal) { ((EntityAnimal) entity).onStruckByLightning(null); return; } if (entity instanceof EntityPlayer) { EntityPlayer player = (EntityPlayer) entity; player.addPotionEffect(new PotionEffect(MobEffects.BLINDNESS, 210, 0)); player.addPotionEffect(new PotionEffect(MobEffects.WEAKNESS, 210, 2)); player.addPotionEffect(new PotionEffect(MobEffects.WITHER, 210, 0)); player.addPotionEffect(new PotionEffect(MobEffects.SLOWNESS, 210, 0)); } }
Example #6
Source File: CraftCaveSpider.java From Thermos with GNU General Public License v3.0 | 4 votes |
public CraftCaveSpider(CraftServer server, EntityCaveSpider entity) { super(server, entity); }
Example #7
Source File: CraftCaveSpider.java From Thermos with GNU General Public License v3.0 | 4 votes |
@Override public EntityCaveSpider getHandle() { return (EntityCaveSpider) entity; }