net.minecraft.entity.passive.IAnimals Java Examples
The following examples show how to use
net.minecraft.entity.passive.IAnimals.
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: TracersModule.java From seppuku with GNU General Public License v3.0 | 6 votes |
private boolean checkFilter(Entity entity) { boolean ret = false; if (this.players.getValue() && entity instanceof EntityPlayer && entity != Minecraft.getMinecraft().player) { ret = true; } if (this.mobs.getValue() && entity instanceof IMob) { ret = true; } if (this.animals.getValue() && entity instanceof IAnimals && !(entity instanceof IMob)) { ret = true; } if (this.vehicles.getValue() && (entity instanceof EntityBoat || entity instanceof EntityMinecart || entity instanceof EntityMinecartContainer)) { ret = true; } if (this.items.getValue() && entity instanceof EntityItem) { ret = true; } return ret; }
Example #2
Source File: KillAuraModule.java From seppuku with GNU General Public License v3.0 | 5 votes |
private boolean checkFilter(Entity entity) { boolean ret = false; if (this.players.getValue() && entity instanceof EntityPlayer && entity != Minecraft.getMinecraft().player && Seppuku.INSTANCE.getFriendManager().isFriend(entity) == null && !entity.getName().equals(Minecraft.getMinecraft().player.getName())) { ret = true; } if (this.mobs.getValue() && entity instanceof IMob) { ret = true; } if (this.animals.getValue() && entity instanceof IAnimals && !(entity instanceof IMob)) { ret = true; } if (this.vehicles.getValue() && (entity instanceof EntityBoat || entity instanceof EntityMinecart || entity instanceof EntityMinecartContainer)) { ret = true; } if (this.projectiles.getValue() && (entity instanceof EntityShulkerBullet || entity instanceof EntityFireball)) { ret = true; } if (entity instanceof EntityLivingBase) { final EntityLivingBase entityLivingBase = (EntityLivingBase) entity; if (entityLivingBase.getHealth() <= 0) { ret = false; } } return ret; }
Example #3
Source File: TracersModule.java From seppuku with GNU General Public License v3.0 | 5 votes |
private int getColor(Entity entity) { int ret = -1; if (entity instanceof IAnimals && !(entity instanceof IMob)) { ret = 0xFF00FF44; } if (entity instanceof IMob) { ret = 0xFFFFAA00; } if (entity instanceof EntityBoat || entity instanceof EntityMinecart || entity instanceof EntityMinecartContainer) { ret = 0xFF00FFAA; } if (entity instanceof EntityItem) { ret = 0xFF00FFAA; } if (entity instanceof EntityPlayer) { ret = 0xFFFF4444; if (Seppuku.INSTANCE.getFriendManager().isFriend(entity) != null) { ret = 0xFF9900EE; } } return ret; }
Example #4
Source File: WallHackModule.java From seppuku with GNU General Public License v3.0 | 5 votes |
private boolean checkFilter(Entity entity) { boolean ret = false; if (this.local.getValue() && (entity == Minecraft.getMinecraft().player) && (Minecraft.getMinecraft().gameSettings.thirdPersonView != 0)) { ret = true; } if (this.players.getValue() && entity instanceof EntityPlayer && entity != Minecraft.getMinecraft().player) { ret = true; } if (this.mobs.getValue() && entity instanceof IMob) { ret = true; } if (this.animals.getValue() && entity instanceof IAnimals && !(entity instanceof IMob)) { ret = true; } if (this.items.getValue() && entity instanceof EntityItem) { ret = true; } if (this.crystals.getValue() && entity instanceof EntityEnderCrystal) { ret = true; } if (this.vehicles.getValue() && (entity instanceof EntityBoat || entity instanceof EntityMinecart || entity instanceof EntityMinecartContainer)) { ret = true; } if (this.armorStand.getValue() && entity instanceof EntityArmorStand) { ret = true; } if (this.pearls.getValue() && entity instanceof EntityEnderPearl) { ret = true; } if (Minecraft.getMinecraft().player.getRidingEntity() != null && entity == Minecraft.getMinecraft().player.getRidingEntity()) { ret = false; } return ret; }
Example #5
Source File: WallHackModule.java From seppuku with GNU General Public License v3.0 | 5 votes |
private int getColor(Entity entity) { int ret = -1; if (entity instanceof IAnimals && !(entity instanceof IMob)) { ret = 0xFF00FF44; } if (entity instanceof IMob) { ret = 0xFFFFAA00; } if (entity instanceof EntityBoat || entity instanceof EntityMinecart || entity instanceof EntityMinecartContainer) { ret = 0xFF00FFAA; } if (entity instanceof EntityItem) { ret = 0xFF00FFAA; } if (entity instanceof EntityEnderCrystal) { ret = 0xFFCD00CD; } if (entity instanceof EntityEnderPearl) { ret = 0xFFCD00CD; } if (entity instanceof EntityPlayer) { ret = 0xFFFF4444; if (entity == Minecraft.getMinecraft().player) { ret = -1; } if (entity.isSneaking()) { ret = 0xFFEE9900; } if (Seppuku.INSTANCE.getFriendManager().isFriend(entity) != null) { ret = 0xFF9900EE; } } return ret; }
Example #6
Source File: ChamsModule.java From seppuku with GNU General Public License v3.0 | 4 votes |
private boolean checkFilter(Entity entity) { boolean ret = false; if (entity == Minecraft.getMinecraft().player) { ret = false; } final Entity riding = Minecraft.getMinecraft().player.getRidingEntity(); if (riding != null && entity == riding) { ret = false; } if (this.players.getValue() && entity instanceof EntityPlayer && entity != Minecraft.getMinecraft().player) { ret = true; } if (this.animals.getValue() && entity instanceof IAnimals) { ret = true; } if (this.mobs.getValue() && entity instanceof IMob) { ret = true; } if (this.vehicles.getValue() && (entity instanceof EntityBoat || entity instanceof EntityMinecart || entity instanceof EntityMinecartContainer)) { ret = true; } if (this.crystals.getValue() && entity instanceof EntityEnderCrystal) { ret = true; } if (entity instanceof EntityLivingBase) { final EntityLivingBase entityLiving = (EntityLivingBase) entity; if (entityLiving.ticksExisted <= 0) { ret = false; } } return ret; }