package openonyx.protocol; import java.util.Iterator; import java.util.List; import net.minecraft.entity.Entity; import openonyx.core.MinecraftAccess; import openonyx.protocol.group_m.Angles; import openonyx.protocol.internal.MovementFixMode; import openonyx.protocol.internal.internal.RotationSmoother; import openonyx.utilities.ConditionalAction; import openonyx.utilities.PlayerUtils; public class RotationRequest implements MinecraftAccess { private final Angles angles; private final int l; private final float I; private final List rotationSmoothers; private Entity entity; private final boolean f; private final MovementFixMode movementFixMode; private final ConditionalAction conditionalAction; private Angles L(Angles angles, Angles angles1) { if (this.rotationSmoothers.isEmpty()) { return angles1; } angles1 = angles1; Iterator iterator; for (Iterator iterator1 = iterator = this.rotationSmoothers.iterator(); iterator1.hasNext(); iterator1 = iterator) { angles1 = ((RotationSmoother)iterator.next()).L(this, anglesx, angles1); } return angles1; } public Angles getAngles() { return this.angles; } public void L(Entity entity) { this.entity = entityx; } public ConditionalAction getConditionalAction() { return this.conditionalAction; } public Entity getEntity() { return this.entity; } public int L() { return this.l; } public MovementFixMode getMovementFixMode() { return this.movementFixMode; } public RotationRequest( Angles angles, Entity entity, List list, int i, float f, boolean bl, MovementFixMode movementFixMode, ConditionalAction conditionalAction ) { this.angles = anglesx; this.entity = entityx; this.rotationSmoothers = list; this.l = i; this.I = fx; this.f = bl; this.movementFixMode = movementFixModex; this.conditionalAction = conditionalActionx; } public List getRotationSmoothers() { return this.rotationSmoothers; } public Angles L(Angles angles, boolean bl) { if (bl) { this.entity = null; return this.L(anglesx, PlayerUtils.L((Entity)mc.thePlayer)); } else { return this.L(anglesx, this.angles); } } public boolean L() { return this.f; } public float L() { return this.I; } }