474849505152535455
EntityVehicle veh = (EntityVehicle)driveable; steeringYaw = veh.wheelsYaw; } else if(driveable instanceof EntityPlane) { EntityPlane plane = (EntityPlane)driveable; steeringYaw = plane.flapsYaw; } }
13141516171819202122
public PacketPlaneControl() {} public PacketPlaneControl(EntityDriveable driveable) { super(driveable); EntityPlane plane = (EntityPlane)driveable; gear = plane.varGear; doors = plane.varDoor; wings = plane.varWing; }
41424344454647484950
@Override protected void updateDriveable(EntityDriveable driveable, boolean clientSide) { super.updateDriveable(driveable, clientSide); EntityPlane plane = (EntityPlane)driveable; plane.varDoor = doors; plane.varGear = gear; plane.varWing = wings; }