public EntityLiving(World p_i1595_1_) { super(p_i1595_1_); this.field_70714_bg = new EntityAITasks(p_i1595_1_ != null && p_i1595_1_.field_72984_F != null?p_i1595_1_.field_72984_F:null); this.field_70715_bh = new EntityAITasks(p_i1595_1_ != null && p_i1595_1_.field_72984_F != null?p_i1595_1_.field_72984_F:null); this.field_70749_g = new EntityLookHelper(this); this.field_70765_h = new EntityMoveHelper(this); this.field_70767_i = new EntityJumpHelper(this); this.field_70762_j = new EntityBodyHelper(this); this.field_70699_by = new PathNavigate(this, p_i1595_1_); this.field_70723_bA = new EntitySenses(this); for(int var2 = 0; var2 < this.field_82174_bp.length; ++var2) { this.field_82174_bp[var2] = 0.085F; } }
public JakanHacks(EntityJakanPrime dragon) { super(dragon); // override EntityBodyHelper field, which is private and has no setter // required to fixate body while sitting. also slows down rotation while standing. try { int fieldIndex = UnsafeReflectionHelper.findFieldIndex(EntityLiving.class, EntityBodyHelper.class); ReflectionHelper.setPrivateValue(EntityLiving.class, dragon, new JakanBodyHelper(dragon), fieldIndex); } catch (Exception ex) { L.log(Level.WARNING, "Can't override EntityBodyHelper", ex); } }
public EventEntityLivingInit(EntityLiving entity, World world, EntityAITasks tasks, EntityAITasks targetTasks, EntityLookHelper lookHelper, EntityMoveHelper moveHelper, EntityJumpHelper jumpHelper, EntityBodyHelper bodyHelper, PathNavigate navigator, EntitySenses senses) { this.entity = entity; this.world = world; this.tasks = tasks; this.targetTasks = targetTasks; this.lookHelper = lookHelper; this.jumpHelper = jumpHelper; this.moveHelper = moveHelper; this.bodyHelper = bodyHelper; this.navigator = navigator; this.senses = senses; }
protected EntityBodyHelper createBodyHelper() { return new EntityShulker.BodyHelper(this); }