@Override protected Entity findPlayerToAttack() { Entity e = GenericUtils.getNearestEntityTo( this, GenericUtils.getEntitiesAround_CheckSight(this, 15.0, selector)); if (e != null && e.getCommandSenderName().equals(throwerName)) return null; return e; }
@Override public List<IHackableEntity> getCurrentEntityHacks(Entity entity) { HackingEntityProperties hackingProps = (HackingEntityProperties) entity.getExtendedProperties("PneumaticCraftHacking"); if (hackingProps != null) { List<IHackableEntity> hackables = hackingProps.getCurrentHacks(); if (hackables != null) return hackables; } else { Log.warning( "Extended entity props HackingEntityProperties couldn't be found in the entity " + entity.getCommandSenderName()); } return new ArrayList<IHackableEntity>(); }
public RenderTarget(Entity entity) { this.entity = entity; trackEntries = EntityTrackHandler.getTrackersForEntity(entity); circle1 = new RenderTargetCircle(); circle2 = new RenderTargetCircle(); if (entity instanceof EntityLiving && EntityUtils.getLivingDropID((EntityLiving) entity) != null) { stat = new GuiAnimatedStat( null, entity.getCommandSenderName(), new ItemStack(EntityUtils.getLivingDropID((EntityLiving) entity), 1, 0), 20, -20, 0x3000AA00, null, false); } else { stat = new GuiAnimatedStat( null, entity.getCommandSenderName(), "", 20, -20, 0x3000AA00, null, false); } stat.setMinDimensionsAndReset(0, 0); }